Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"public-com": {
"env": {
"PUBLIC_COM_SECRET": "your_api_secret_key",
"PUBLIC_COM_ACCOUNT_ID": "your_account_id"
},
"command": "publicdotcom-mcp-server"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
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.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
uvx 'publicdotcom-mcp-server' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked publicdotcom-mcp-server against OSV.dev.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in finance
Let AI agents create, discover, and track tokens across chains via Printr.
Real-time financial market data: stocks, forex, crypto, commodities, and economic indicators
Swiss accounting integration for Bexio. 310 tools for invoices, contacts, projects.
Brazilian public procurement (PNCP) and Federal Revenue CNPJ data — 16 tools, 4 prompts.
MCP Security Weekly
Get CVE alerts and security updates for Publicdotcom Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
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.
| Tool | Description |
|---|---|
check_setup | Verify API credentials and connectivity |
get_accounts | List all brokerage accounts |
get_portfolio | View positions, equity, buying power, open orders |
get_orders | List active/open orders |
get_order | Get status of a specific order |
get_history | Transaction history (trades, deposits, dividends, etc.) |
get_quotes | Real-time quotes for stocks, crypto, options |
get_price_history | OHLCV price history for equities, crypto, options, or indices |
get_instrument | Details about a specific tradeable instrument |
get_all_instruments | List all available instruments with filters |
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 |
preflight_order | Estimate costs/impact before placing a single-leg order |
preflight_multileg_order | Estimate costs for multi-leg options strategies |
preflight_short_order | Estimate costs before placing a short-sale order |
preflight_call_credit_spread | Estimate costs for a Bear Call Spread |
preflight_call_debit_spread | Estimate costs for a Bull Call Spread |
preflight_put_credit_spread | Estimate costs for a Bull Put Spread |
preflight_put_debit_spread | Estimate costs for a Bear Put Spread |
| Tool | Description |
|---|---|
place_order | Place a single-leg order (stocks, crypto, options) |
place_multileg_order | Place multi-leg orders (spreads, straddles, etc.) |
place_call_credit_spread | Place a Bear Call Spread |
place_call_debit_spread | Place a Bull Call Spread |
place_put_credit_spread | Place a Bull Put Spread |
place_put_debit_spread | Place a Bear Put Spread |
place_short_order | Place an equity short-sale order |
flatten_and_go_short | Sell an existing long position then go short (experimental) |
cancel_order | Cancel an existing order |
cancel_and_replace_order | Atomically cancel and replace an order |
pip install publicdotcom-mcp-server
Or install from source:
git clone https://github.com/publicdotcom/publicdotcom-mcp-server.git
cd publicdotcom-mcp-server
pip install .
Set your API credentials as environment variables:
# Required
export PUBLIC_COM_SECRET=your_api_secret_key
# Optional — sets a default account so you don't need to specify it each time
export PUBLIC_COM_ACCOUNT_ID=your_account_id
Add this to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"public-com": {
"command": "publicdotcom-mcp-server",
"env": {
"PUBLIC_COM_SECRET": "your_api_secret_key",
"PUBLIC_COM_ACCOUNT_ID":
... [View full README on GitHub](https://github.com/PublicDotCom/publicdotcom-mcp-server#readme)