Public.comSAFE
Connect AI assistants to your Public.com brokerage account. Trade stocks, options, and crypto — get quotes, manage orders, and view your portfolio.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](LICENSE) [](https://python.org) [](https://modelcontextprotocol.io)
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
e79d19f0e03fOBSERVED · 2026-10-07Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add publicdotcom-mcp-server --env PUBLIC_COM_SECRET=${PUBLIC_COM_SECRET} -- uvx publicdotcom-mcp-server{
"mcpServers": {
"publicdotcom-mcp-server": {
"command": "uvx",
"args": [
"publicdotcom-mcp-server"
],
"env": {
"PUBLIC_COM_SECRET": "${PUBLIC_COM_SECRET}"
}
}
}
}Exposed tools (37)
24 read · 13 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
cancel_and_replace_order | write | |
cancel_order | write | |
check_setup | read | |
flatten_and_go_short | read | |
get_accounts | read | |
get_all_instruments | read | |
get_bond_details | read | |
get_history | read | |
get_instrument | read | |
get_option_chain | read | |
get_option_expirations | read | |
get_option_greek | read | |
get_option_greeks | read | |
get_order | write | |
get_orders | read | |
get_portfolio | read | |
get_price_history | read | |
get_quotes | read | |
get_strategy_quote | read | |
get_tax_lots | read | |
get_tax_lots_csv | read | |
get_tax_lots_for_symbol | read | |
place_call_credit_spread | read | |
place_call_debit_spread | read | |
place_multileg_order | write | |
place_order | write | |
place_put_credit_spread | write | |
place_put_debit_spread | write | |
place_short_order | write | |
preflight_call_credit_spread | read | |
preflight_call_debit_spread | read | |
preflight_multileg_order | write | |
preflight_order | write | |
preflight_put_credit_spread | write | |
preflight_put_debit_spread | write | |
preflight_short_order | write | |
search_bonds | read |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (1)
In this mode the server listens for MCP requests at `POST /mcp`. Clients authenticate per-request via an `Authorization: Bearer <key>` header, which takes priority over the `PUBLIC_COM_SECRET` environ
Gates applied: no_behavioural_pass.
e79d19f0e03ffull audit observations/trust-audit/mcp-server/publicdotcom__public-com.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-07 | e79d19f0e03f | SAFE | B | 89 | first audit |
Questions
What is the Public.com MCP server?
Connect AI assistants to your Public.com brokerage account. Trade stocks, options, and crypto — get quotes, manage orders, and view your portfolio.
What tools does Public.com expose?
37 in total: 24 read-only, 13 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Public.com safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Public.com need?
It reads PUBLIC_COM_SECRET from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Public.com run?
It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on PyPI as publicdotcom-mcp-server.
How current is this page?
The grade is for one exact copy of the source (e79d19f0e03f), read on 2026-10-07. The repository is watched and re-audited when it changes.