PP

publicdotcom/publicdotcom-mcp-server

开发工具官方

本页由 AI 翻译,技术细节请以原文为准。 查看原文

67 stars 7 forks 质量 85 趋势 34Apache-2.0

publicdotcom/publicdotcom-mcp-server 是从 https://github.com/publicdotcom/publicdotcom-mcp-server. 导入的 MCP 服务器候选

概览

publicdotcom/publicdotcom-mcp-server 是从 https://github.com/publicdotcom/publicdotcom-mcp-server. 导入的 MCP 服务器候选

概述(AI 翻译)

一个MCP(模型上下文协议)服务器,将AI助手连接到您的 Public.com 经纪账户。通过自然语言交易股票、期权和加密货币——获取报价、管理订单并查看您的投资组合。

免责声明: 仅供说明和信息参考。不构成投资建议或推荐。请自行承担风险。

工具

只读

工具 描述
check_setup 验证API凭证和连接性
get_accounts 列出所有经纪账户
get_portfolio 查看头寸、股票、购买力、未完成订单
get_orders 列出活跃/开放订单(括号腿共享一个bracketId)
get_order 特定订单的状态和详细信息,包括其填充(trades、filledAt、replacedAt、lastModified);过去30天
search_orders 搜索订单历史 — 任意状态,过去30天,最多500笔订单,按状态/边境/符号/类型/时间筛选
get_history 交易历史(交易、存款、股息等)
get_quotes 股票、加密货币、期权、事件合约的实时报价

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Public.com MCP Server

An MCP (Model Context Protocol) server that connects AI assistants to your Public.com brokerage account. Trade stocks, options, and crypto — get quotes, manage orders, and view your portfolio — all through natural language.

Disclaimer: For illustrative and informational purposes only. Not investment advice or recommendations. Use at your own risk.

Tools

Read-Only

Tool Description
check_setup Verify API credentials and connectivity
get_accounts List all brokerage accounts
get_portfolio View positions, equity, buying power (including dayTradeBuyingPower), open orders
get_orders List active/open orders (bracket legs share a bracketId)
get_order Status and details of a specific order, including its fills (trades with each fill’s venue MIC, filledAt, replacedAt, lastModified); last 30 days
search_orders Search order history — any status, last 30 days, up to 500 orders, filtered by status/side/symbols/type/time
get_history Transaction history (trades, deposits, dividends, etc.)
get_quotes Real-time quotes for stocks, crypto, options, event contracts
get_price_history OHLCV price history for equities, crypto, options, indices, or event contracts
get_instrument Details about a specific tradeable instrument
get_all_instruments List all available instruments with filters
search_bonds Filtered, paged search for fixed income instruments
get_bond_details Pricing, ratings, coupon and maturity info for a bond
get_option_expirations Available expiration dates for options
get_option_chain Full option chain (calls + puts) for a symbol
get_option_greeks Greeks (delta, gamma, theta, vega, rho, IV) for multiple options
get_option_greek Greeks for a single option symbol
get_tax_lots Unrealized tax-lot summary (per-lot gain/loss, term, cost basis)
get_tax_lots_for_symbol Unrealized tax-lot detail for a single symbol
get_tax_lots_csv Export unrealized tax lots as a Base64-encoded CSV file
get_strategy_quote Consolidated quote for a multi-leg option strategy
get_event_categories Event-contract (prediction market) categories, subcategories and frequency filters
get_event_summary Browse event contracts by category / symbol / frequency / resolution time, 100 per page
get_event_details One event’s outcomes (with floorStrike), YES/NO contract prices, timeline and CFTC terms, plus per-outcome tradable / secondsLeft / winner
在 GitHub 查看完整 README

安装

uvx publicdotcom-mcp-server
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "public-com": { "command": "publicdotcom-mcp-server", "env": { "PUBLIC_COM_SECRET": "your_api_secret_key", "PUBLIC_COM_ACCOUNT_ID": "your_account_id" } } } }