arelle-mcp
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., "@arelle-mcpShow me Apple's latest 10-K financial summary"
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.
arelle-mcp
The definitive MCP server for XBRL processing, validation, and financial analysis.
Built by King Hippopotamus.
Uses Arelle — the world's only free, open-source XBRL-certified processor — as its core engine. No other XBRL MCP server exists. This is the first.
What it does
arelle-mcp gives LLMs (Claude, GPT, etc.) full access to XBRL financial data through 17 tools:
Category | Tools | Description |
Filing Ops |
| Load, inspect, compare, and manage XBRL/iXBRL filings |
Validation |
| Validate against SEC EFM, EU ESEF, UK HMRC, or generic rules |
Fact Extraction |
| Query financial data points with filtering by concept, period, dimension, unit |
Taxonomy |
| Search and explore the taxonomy (standard + company extensions) |
Relationships |
| Navigate financial statement hierarchies, calculation trees, and dimensional breakdowns |
SEC EDGAR |
| Fetch SEC filings by ticker/CIK, search historical concept data |
Rendering |
| Reconstruct financial statements (Balance Sheet, Income Statement, Cash Flow) |
Plus 5 resources (reference data) and 5 prompt templates (guided analysis workflows).
Related MCP server: edgar-mcp
Quick Start
Install
pip install arelle-mcpClaude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"arelle-mcp": {
"command": "arelle-mcp",
"env": {
"ARELLE_MCP_MAX_FILINGS": "5"
}
}
}
}Claude Code
claude mcp add arelle-mcp -- arelle-mcpCursor / Other MCP Clients
{
"arelle-mcp": {
"command": "python",
"args": ["-m", "arelle_mcp"]
}
}HTTP Mode (Remote)
ARELLE_MCP_TRANSPORT=streamable-http ARELLE_MCP_PORT=8000 arelle-mcpUsage Examples
Analyze Apple's Latest 10-K
"Fetch Apple's latest 10-K and give me a financial summary"The LLM will:
Call
xbrl_fetch_sec_filing(ticker="AAPL", filing_type="10-K")Extract key metrics with
xbrl_extract_factsRender financial statements with
xbrl_render_statement
Validate a Filing
"Validate this SEC filing: https://www.sec.gov/Archives/edgar/data/..."Compare Two Quarters
"Compare Apple's Q2 and Q3 2024 10-Q filings"Historical Revenue Trend
"Show me Microsoft's revenue history from SEC EDGAR"The LLM calls xbrl_search_sec_concept(cik="789019", concept="Revenues") — no filing load needed.
Architecture
Core Design Decisions
1. Single-Session Lock — Arelle uses global state that isn't thread-safe. All operations are serialized via asyncio.Lock and offloaded to a ThreadPoolExecutor to avoid blocking the MCP event loop.
2. LRU Filing Cache — Each loaded filing consumes 30-60MB. An OrderedDict-based LRU cache (default: 5 filings) automatically evicts the oldest filing when capacity is reached, calling model.close() to free memory.
3. Lazy Imports — Arelle is heavy (~200MB with taxonomies). All Arelle imports happen lazily inside tool functions, keeping server startup fast.
Project Structure
src/arelle_mcp/
├── server.py # FastMCP instance, lifespan, registration
├── arelle_wrapper.py # ArelleManager — session lifecycle, concurrency, caching
├── serializers.py # Arelle objects → JSON/markdown
├── constants.py # Arcroles, disclosure systems, SEC config
├── tools/
│ ├── filing.py # Load, summary, compare, close, list
│ ├── validation.py # Validate against disclosure systems
│ ├── facts.py # Extract and filter facts
│ ├── taxonomy.py # Browse concepts, get details
│ ├── relationships.py # Presentation, calculation, dimension trees
│ ├── edgar.py # SEC EDGAR API integration
│ └── rendering.py # Financial statement rendering
├── resources/ # Reference data (disclosure systems, common concepts)
└── prompts/ # Guided analysis workflow templatesConfiguration
Environment Variable | Default | Description |
|
| Max filings cached in memory |
| (none) | Directory for taxonomy cache |
|
| Transport: |
|
| HTTP port (when using streamable-http) |
|
| Logging level |
Development
git clone https://github.com/TheKingHippopotamus/Arelle-MCP.git
cd Arelle-MCP
pip install -e ".[dev]"
# Run tests
pytest
# Type check
mypy src/arelle_mcp
# Lint
ruff check src/
# Test with MCP Inspector
npx @modelcontextprotocol/inspector arelle-mcpSupported File Formats
XBRL Instance Documents (
.xbrl,.xml)Inline XBRL (
.htm,.html) — SEC mandated since June 2021iXBRL Document Sets
ZIP archives containing XBRL
SEC EDGAR URLs (auto-fetched)
Taxonomy Packages (
.zip)
Supported Disclosure Systems
SEC EFM — US Securities and Exchange Commission
ESEF — European Single Electronic Format (EU/ESMA)
HMRC — UK HM Revenue & Customs
GFM — Global Filing Manual
License
Apache 2.0 — same as Arelle itself.
Built by King Hippopotamus — with zero compromises.
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
- Alicense-qualityCmaintenanceEnables LLMs to download, parse, and analyze SEC EDGAR filings, including 10-K/Q reports, XBRL financial statements, and insider trading data. It provides structured access to institutional holdings, corporate events, and financial facts for comprehensive investment research.Last updated1MIT
- AlicenseAqualityBmaintenanceProvides access to SEC EDGAR financial data, enabling AI agents to fetch company filings, financial metrics, and narrative sections. It supports natural-language metric searching and extracts structured data from 10-K, 10-Q, and 8-K reports.Last updated6MIT
- Alicense-qualityCmaintenanceEnables LLMs to access SEC EDGAR data: search filings, extract sections, pull structured financials, and track insider transactions.Last updated32MIT
- Flicense-qualityCmaintenanceProvides reference and pre-flight linting for XBRL Query and Rules Language (XULE), helping LLMs write syntactically sound rules with tools for object model lookup, function catalog, filter syntax, and boilerplate snippets.Last updated
Related MCP Connectors
SEC EDGAR for AI agents: company filings, financials and insider trades. No API keys.
Provide AI assistants with real-time access to official SEC EDGAR filings and financial data. Enab…
SEC XBRL MCP — wraps SEC EDGAR XBRL API (data.sec.gov)
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/TheKingHippopotamus/Arelle-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server