Connect a compatible assistant over MCP, or use the CLI in a terminal or coding agent. Both use your Castling account and the same filing-backed warehouse. Pull KPIs and full statements, inspect reported segment composition, screen or compare companies, look up an issuer, browse filing metadata and material Form 8-Ks, search company summaries for context, and reach further back in history on paid plans when the data is available.
MCP and CLI share one allowance. Avoid repeating the same request through both.
Agent skill
# Castling CLI
HTTP client of POST https://api.castlingfinancial.com/v1/call.
Package: castling-financial. Command: castling.
Sign up on the dashboard first. Login does not create accounts.
Do not install any other package name. Do not print tokens.
## Install (once)
Requires Node.js 22 or newer. Install with npm:
npm i -g castling-financial
Bun package manager (Node.js is still required):
bun add -g castling-financial
castling login
Agents: ask the user to run login in their own terminal, then run data commands.
## Prefer one-shot scripts
castling script company_kpis --query MSFT --years 2023,2024
Also: script compare | screen | latest_8k.
CLI and MCP requests share the same monthly quota.
## Exit codes
0 success · 1 usage · 2 auth · 3 history/quota · 4 rate limit · 5 network/server · 130 cancelled
Help is plain text. Success JSON is on stdout; error JSON is on stderr. null stays null.
Tools you get
Five read-only tools, the same surface Castle AI, MCP, and the CLI use, over Castling's equity research warehouse.
companyLook up a company by ticker or name, check which data snapshot you are reading, or explain coverage gaps.
fundamentalsPull filing-backed KPIs, XBRL line items, full statements, segment axes/series/composition, universe screens, and multi-company compares.
filingsForm 10-K, 20-F, and 40-F metadata, plus material Form 8-K and 8-K/A lists and document text.
searchSearch company summaries and data-quality notes for context. Not a source of KPI numbers.
scriptOne-call playbooks: company_kpis, compare, screen, and latest_8k (resolve + data pull bundled). Counts as one tool call.
Account and suite tiers
MCP uses a one-time OAuth sign-in. The CLI uses dashboard signup, then castling login. History depth and monthly call caps follow your suite tier. MCP and CLI share that cap.
Free
MCP/CLI: recent four fiscal years
50 MCP/CLI calls / month
Standard
MCP/CLI: history back to 2009*
500 MCP/CLI calls / month
Pro
MCP/CLI: history back to 2009*
2,000 MCP/CLI calls / month
Ultra
MCP/CLI: history back to 2009*
10,000 MCP/CLI calls / month
* Paid history goes back to 2009 when available. Not every company has filings that far.
Sign in during the connector OAuth flow. Consent is handled at castlingfinancial.com/oauth/consent.
Try asking
After connecting, prompts like these exercise real Castling tools.
“What was Apple's revenue, net income, and free cash flow in 2023?”
“Make a line graph of Microsoft revenue and operating cash flow for all years.”
“Show Microsoft business segment revenue composition for the latest fiscal year.”
“Make a graph comparing Microsoft and Google net income for 2022 to 2024.”
“Screen for the top 25 USD companies by free cash flow in the latest annual year.”
“List NVIDIA recent Form 8-K filings and explain the latest documents.”
FAQ
What is an MCP?
Model Context Protocol. It lets an AI assistant call Castling tools instead of you pasting filings into chat. Claude, Grok, and ChatGPT are common clients.
Do I need to write code?
Not for MCP. Any AI with an MCP connector can use Castling. Exact menus vary by client, plan, and workspace settings — Claude and ChatGPT are common examples with steps above. The CLI is for assistants that can run a terminal.
What is the MCP URL?
https://mcp.castlingfinancial.com/mcp
How do I install the CLI?
Sign up on the dashboard. With Node.js 22 or newer, install using npm i -g castling-financial. Bun can also install it: bun add -g castling-financial. Then run castling login. The package is castling-financial; the command is castling.
Do I need a Castling account?
Yes. MCP is OAuth-protected. The CLI uses the same account via email login. Sign up on the dashboard first.
Does the CLI use a separate quota?
No. CLI and MCP share the same monthly programmatic call cap and history depth.
Does Castling give investment advice?
No. Castling retrieves and structures public company filing data. It does not provide brokerage, custody, or personalized investment recommendations. See the disclaimer.
Can I use other MCP clients?
Any client that supports remote MCP over HTTP with OAuth should work with the same URL, subject to that client's auth and transport support.
Ready to research inside your assistant?
Connect over MCP, or install the CLI, then ask for equity research data without pasting statements into chat.