MCP server for SEC EDGAR financial data — give your AI assistant access to company financials, ratios, insider trades, and more
Project description
Thesma MCP Server
Give your AI assistant access to SEC EDGAR financial data.
What it does
An MCP server that wraps the Thesma API, giving AI assistants (Claude, Cursor, ChatGPT) native access to SEC EDGAR data — financials, ratios, insider trades, institutional holdings, executive compensation, and more.
Ask questions in plain English. Get structured financial data back.
Quick example
"What was Apple's revenue last year?"
The AI calls get_financials and returns Apple's income statement with formatted line items.
"Find high-margin S&P 500 companies where insiders are buying"
The AI calls screen_companies with margin filters and insider buying signals.
"Which funds increased their position in NVDA last quarter?"
The AI calls get_holding_changes and shows quarter-over-quarter position changes.
Installation
pip install thesma-mcp
Claude Desktop
Add to your config file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"thesma": {
"command": "uvx",
"args": ["thesma-mcp"],
"env": {
"THESMA_API_KEY": "your-api-key"
}
}
}
}
Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"thesma": {
"command": "uvx",
"args": ["thesma-mcp"],
"env": {
"THESMA_API_KEY": "your-api-key"
}
}
}
}
Using
pip installinstead ofuvx? If you've already installedthesma-mcpwith pip, you can use"command": "thesma-mcp"directly (noargsneeded) instead ofuvx.
Get your API key at portal.thesma.dev (free tier: 1,000 requests/day).
Available tools
Company Discovery
| Tool | Description |
|---|---|
search_companies |
Find US public companies by name or ticker symbol |
get_company |
Get company details — CIK, SIC code, fiscal year end, index membership |
Financial Statements
| Tool | Description |
|---|---|
get_financials |
Get income statement, balance sheet, or cash flow from SEC filings |
get_financial_metric |
Get a single financial metric over time for trend analysis |
Financial Ratios
| Tool | Description |
|---|---|
get_ratios |
Get computed financial ratios — margins, returns, leverage, growth |
get_ratio_history |
Get a single ratio over time for trend analysis |
Screening
| Tool | Description |
|---|---|
screen_companies |
Find companies matching financial criteria — profitability, growth, leverage, insider/institutional signals |
Corporate Events
| Tool | Description |
|---|---|
get_events |
Get 8-K corporate events — earnings, M&A, leadership changes, material agreements |
Insider Trading
| Tool | Description |
|---|---|
get_insider_trades |
Get Form 4 insider transactions — purchases, sales, grants, option exercises |
Institutional Holdings
| Tool | Description |
|---|---|
search_funds |
Find institutional investment managers (hedge funds, mutual funds) by name |
get_institutional_holders |
Get which funds hold a company's stock with shares and market values |
get_fund_holdings |
Get a fund's portfolio — what stocks it owns |
get_holding_changes |
Get quarter-over-quarter changes in institutional positions |
Compensation & Governance
| Tool | Description |
|---|---|
get_executive_compensation |
Get executive pay — salary, bonus, stock awards, total, CEO pay ratio |
get_board_members |
Get board of directors — age, tenure, independence, committee memberships |
Filings
| Tool | Description |
|---|---|
search_filings |
Search SEC filings by company, type (10-K, 10-Q, 8-K, etc.), and date range |
Configuration
| Variable | Required | Description |
|---|---|---|
THESMA_API_KEY |
Yes | API key from portal.thesma.dev |
THESMA_API_URL |
No | Override API base URL (default: https://api.thesma.dev) |
Data coverage
- ~1,000 US public companies (Russell 1000 + S&P 500)
- Financial statements from 2009-present (iXBRL and companyfacts sources)
- Insider trades, institutional holdings, executive compensation, board data
- Data sourced from SEC EDGAR (public domain)
Links
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file thesma_mcp-0.2.0.tar.gz.
File metadata
- Download URL: thesma_mcp-0.2.0.tar.gz
- Upload date:
- Size: 52.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d99d21de04562406283c24688f8be4adcb1645ab5fe4b05818907ebaec13da44
|
|
| MD5 |
b0aaa7bff94005c01624f1eecf8249a9
|
|
| BLAKE2b-256 |
c6df277824e521fee09910d86276b1fc58b346d8ce46ccaf7e0566302101c023
|
Provenance
The following attestation bundles were made for thesma_mcp-0.2.0.tar.gz:
Publisher:
publish.yml on thesma-dev/thesma-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
thesma_mcp-0.2.0.tar.gz -
Subject digest:
d99d21de04562406283c24688f8be4adcb1645ab5fe4b05818907ebaec13da44 - Sigstore transparency entry: 1252950707
- Sigstore integration time:
-
Permalink:
thesma-dev/thesma-mcp@32df2fec5f7e41ddfbf2cf022e9ac090d4f5b9b2 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/thesma-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@32df2fec5f7e41ddfbf2cf022e9ac090d4f5b9b2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file thesma_mcp-0.2.0-py3-none-any.whl.
File metadata
- Download URL: thesma_mcp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 40.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ba30e09eff703ba2beb8e78be22be19b90a861b6d48c843b6a0ca40089a6d33
|
|
| MD5 |
a1f3ede7178fb1de8dca8b75655bbc86
|
|
| BLAKE2b-256 |
77d5635c444fe46759c96e31e0ee60a3d866633e21ac154d12a8ab764fea3dde
|
Provenance
The following attestation bundles were made for thesma_mcp-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on thesma-dev/thesma-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
thesma_mcp-0.2.0-py3-none-any.whl -
Subject digest:
4ba30e09eff703ba2beb8e78be22be19b90a861b6d48c843b6a0ca40089a6d33 - Sigstore transparency entry: 1252950724
- Sigstore integration time:
-
Permalink:
thesma-dev/thesma-mcp@32df2fec5f7e41ddfbf2cf022e9ac090d4f5b9b2 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/thesma-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@32df2fec5f7e41ddfbf2cf022e9ac090d4f5b9b2 -
Trigger Event:
push
-
Statement type: