desk
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@deskanalyze AAPL with fundamentals, technicals, and macro"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Trading Desk
Multi-agent equity research for US markets, running on Claude Code subagents over MCP. Analysis-first: real money is never touched, and order flow goes to an Alpaca paper account.
Why this exists
Financial data is easy to fetch and easy to get wrong. US-GAAP XBRL concepts drift per company and over time, so reading a single hardcoded concept returns figures that are years stale with no error raised:
Ticker | Live concept | Correct FY revenue | Naive |
AAPL |
| $416.2B (FY25) | $62.9B — a 2018 figure |
NVDA |
| $215.9B (FY26) | correct, coincidentally |
MSFT |
| $331.8B (FY26) | $16.0B — a 2010 figure |
An agent given $62.9B for Apple writes a confident, completely wrong thesis. The whole design follows from preventing that.
Operating rules
Agents never compute and never recall. Every number comes from a tool call; ratios and indicators are calculated in Python.
Every value carries provenance — XBRL concept, period, form, accession, filing date — so any figure can be traced back to the filing.
Stale data raises. A number too old to answer the question is an error, not a footnote.
Concept resolution is code with tests, not a prompt instruction.
Related MCP server: ReadyTrader-Stocks
Status
Phase 4 complete: research, sizing, a scoreable record, the context around a name, and paper execution that cannot be reached except through an approved thesis.
EDGAR client — rate limited, disk cached, no API key required
Concept resolver with provenance and staleness enforcement
Golden tests (23) pinned to filed 10-Ks
deskMCP server, verified over stdioPhase 1 —
fundamentals+chartistagents,/analyzePhase 2 —
risk(veto) + journal,/journalPhase 3 —
filings,macro,screenerPhase 4 —
pilot, Alpaca paper execution behind risk approvalPhase 5 —
/postmortemcalibration loop
Setup
uv sync
uv run pytest tests/golden -q # must be green before any agent workCredentials
Keys live in the environment, never in the repo — .mcp.json reads them via
${VAR} expansion. Put them in ~/.zshrc so they cannot be committed by
accident.
Variable | Where to get it | Needed by |
| app.alpaca.markets — switch the dashboard to Paper, then API Keys → Generate. Secret shows once. | Phase 1 ( |
| fredaccount.stlouisfed.org/apikeys — instant, free |
|
| Your own | optional; defaults in |
Paper trading needs no funding, identity check or approval — that applies only to live accounts.
Verify without exposing anything (the script prints presence and a masked prefix only, never a secret):
uv run python scripts/check_keys.pyData sources
Source | Provides | Auth |
SEC EDGAR | XBRL financials, filings, Form 4 insider | none (User-Agent only) |
Alpaca | Bars, quotes, news, paper orders/positions | free API key |
FRED | Rates, curve, inflation | free API key |
Deliberately not used: yfinance (unofficial endpoints, silent empty
responses) and Stooq (now behind a JS proof-of-work wall). EDGAR is preferred
for fundamentals because it is the source of record rather than a scrape of it.
MCP tools
Tool | Returns |
| Full statement, 17 line items, each with provenance |
| Historical series for one line item |
| Margins, returns, growth, leverage, cash conversion |
| Trend, momentum, volatility, support and resistance |
| Supported line item keys |
| Recent filings, optionally filtered by form |
| A filing's text as filed, markup stripped, in windows |
| Verbatim passages around a term in a filing |
| Form 4 insider transactions |
| Rates, curve, inflation, jobs, vol, dollar — with changes |
| One macro series in detail |
| Discovery lists from the tape |
| Orders a symbol list by relative strength |
| Share count, capital at risk, every limit checked, verdict |
| The standing limits, each with its rationale |
| Records a call with its evidence and falsifiers |
| The book, open or closed |
| Resolves a call and computes realised R |
| Paper account equity, cash, buying power |
| Sends an approved thesis to the paper broker |
| Broker state |
| Unwind |
| Broker positions against journalled theses |
Risk limits
The risk agent holds a veto and does not exercise judgement about it — the
limits are policy, checked in Python, and quoted back with the reason they
exist. get_risk_policy returns them at runtime.
Limit | Value | Why |
Risk per trade | 1% of equity | Ten consecutive losses cost a tenth of the account, which is survivable |
Position size | 20% of equity | A tight stop makes a huge position look cheap; gaps do not respect stops |
Portfolio heat | 6% of equity | The total loss accepted if every open thesis fails at once |
Reward:risk | 2:1 minimum | Below it the strategy needs a win rate nobody here has demonstrated |
Stop distance | 1.5x ATR(14) | A stop inside daily noise is an exit schedule, not protection |
Correlation is the one call the checks cannot make: three 1% positions on the same driver are one 3% position in disguise, and the agent is instructed to veto that even when every numeric limit passes.
The journal
Theses are JSON files under theses/, one per call, written at the moment the
call is made — greppable, diffable, and reviewable alongside the code that
produced them. A thesis will not record without at least one falsifier, and
direction="watch" calls are recorded too: a watchlist name that ran away
without you is as informative as a trade that failed, and only one of the two
tends to get remembered. Realised R is computed on close from the recorded
entry and stop, so outcomes compare across positions of different sizes.
Set DESK_THESES_DIR to keep the book somewhere other than the repository.
Execution
Paper only. The base URL is the paper endpoint, hardcoded with no environment
variable that redirects it, and the account number is checked for Alpaca's
PA prefix before any order is sent — live keys against the paper URL fail
closed rather than trading.
The gate is the shape of the function rather than an instruction to an agent:
place_order(thesis_id) # and nothing elseThere is no symbol parameter, no quantity, no price. All of it is read back out of the journal entry, which exists only because the risk officer approved it and only carries a share count the risk officer computed. An agent asked to buy 100 shares of something has no way to express that.
An order is refused when the thesis is closed, is a watch call, carries a vetoed verdict, was sized at zero shares, lacks an entry or stop, or already has an order attached — the last of which is what stops a retried call from opening a second position in the same name.
Orders go out as brackets, so the stop the risk officer sized against is
submitted with the entry rather than left to a later call that might never
happen. reconcile_positions compares what the broker holds against what the
journal knows about, which is the only way to see the untracked exposure that
portfolio heat is blind to.
Known limitations
Q4 quarterly gaps. Q4 gets no standalone 10-Q; it must be derived as FY minus Q1–Q3. Not yet implemented — quarterly series skip Q4.
Alpaca free tier is IEX-only (~2% of consolidated volume), so daily-bar volume is unreliable for swing setups. The price layer sits behind an adapter so Tiingo or another EOD source can be swapped in without touching agent code. Same seam later carries a non-US broker.
Non-US-GAAP filers (foreign issuers on IFRS) are not covered by the current concept registry.
The screener has no universe. It ranks a list you give it and reads the venue's movers and most-active tables. It cannot screen "all US software above $2B" — there is no fundamental universe behind it, and a themed list assembled by an agent is a recollection, not a screen. The
screeneragent is instructed to say which it is.Filing text is text.
get_filing_textstrips markup and returns what was filed. Tables survive as readable rows, but nothing is parsed into figures — a number read out of filing prose has no XBRL concept behind it, so preferget_financialswhenever the figure exists there.Macro needs its own key. Without
FRED_API_KEYthe macro tools fail with a message saying where to get one. Nothing else on the desk depends on them.A submitted order is not a filled one. A limit entry may never fill, and the position does not exist until it does. The
pilotagent is instructed never to describe one as the other.Portfolio heat only sees the journal. A position taken without recording it is invisible to the risk checks, so the heat number is exposure as recorded rather than exposure as held.
size_positionsays so in itslimitationson every call.
Not financial advice
A research tool, not a prediction engine. The /postmortem loop exists
because calls need to be scored honestly rather than remembered selectively.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseCqualityDmaintenanceProvides AI agents with institutional-grade quantitative finance tools including real-time market data, paper trading via Alpaca, risk analysis with Monte Carlo simulations, backtesting, and multi-source news sentiment analysis for portfolio management and trading strategy development.315MIT
- Alicense-qualityDmaintenanceEnables AI agents to execute stock trading operations with built-in risk controls and human approval workflows. Supports paper trading simulation, real brokerage integration (Alpaca, Tradier), backtesting, sentiment analysis, and portfolio management while maintaining strict separation between AI intelligence and trade execution.MIT
- AlicenseAqualityDmaintenanceProvides actionable financial intelligence tools for AI agents including insider buying signals, earnings IV plays, market pulse, stock analysis, and options strategies via free public data sources.6MIT
- Flicense-qualityDmaintenanceA multi-agent MCP server for comprehensive stock research and analysis using natural language queries, backed by SEC filings and real-time market data.
Related MCP Connectors
Real SEC, 13F, insider, congress & macro data your AI agent can cite. Hosted MCP, 24 tools.
Source-linked SEC 13F research, quality checks, watchlists and audit trails for agents.
The financial MCP for AI agents - 90+ financial tables, SEC filings, signals, alt-data.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Saivikaskillamsetty/tradingdesk'
If you have feedback or need assistance with the MCP directory API, please join our Discord server