WeightedShares SEC EDGAR MCP Server
WeightedShares SEC EDGAR MCP Server
Official hosted Model Context Protocol (MCP) server manifest (server.json), client configurations, and zero-dependency verification toolkit for WeightedShares.com — a free, SEC EDGAR XBRL-backed Buybacks vs. Stock-Based Compensation (SBC), RSU Tax Withholdings, True FCF (FCF − SBC), Form 4 Insider Selling, and 13F Superinvestor Dilution Radar for U.S. public companies.
Connect Claude Code, Claude Desktop, Cursor, Windsurf, Cline, OpenAI Codex CLI, or any MCP-compatible AI agent directly to deterministic, filing-linked SEC XBRL data across 10,400+ U.S. public companies with zero local installation and no API key required (30 req/min/IP).
Live Terminal & Endpoints
Flagship Buybacks vs. SBC Radar: https://weightedshares.com
Hosted MCP Endpoint (Streamable HTTP / JSON-RPC 2.0):
https://weightedshares.com/mcp(alias ofhttps://weightedshares.com/api/mcp)2026 U.S. Buybacks vs. SBC Reality Report: https://weightedshares.com/reports/2026-buybacks-vs-sbc
Superinvestor 13F Dilution Audits: https://weightedshares.com/superinvestors
Quantitative SEC Screens:
Interactive Share Dilution Calculator: https://weightedshares.com/calculator
Methodology & Hard SEC Guardrails: https://weightedshares.com/methodology
Machine-Readable Site Guide (
llms.txt): https://weightedshares.com/llms.txt
Related MCP server: Oxford Ledge MCP Server
Why Use WeightedShares MCP?
Generic LLMs and web scrapers frequently make silent accounting mistakes on U.S. equity filings — confusing cover-page shares outstanding with diluted weighted-average shares, summing RSU tax withholdings into cash buybacks, misreading split-adjusted historical denominators, or running banks and REITs through industrial FCF formulas.
WeightedShares extracts structured XBRL directly from official SEC EDGAR (10-K, 20-F, 40-F, 10-Q, Form 4, and 13F-HR) with deterministic accounting guardrails and clickable SEC accession links on every returned metric.
Available Read-Only Tools (5)
All 5 tools are read-only, idempotent, require no authentication, and return structured JSON payloads with SEC filing provenance (protocolVersion: 2025-03-26).
get_company_buybacks_sbc— Audit 3Y / 5Y / 10Y / Max buybacks, SBC expense, RSU tax withholdings, Standard FCF vs. True FCF (FCF − SBC), unrecognized SBC pipeline, cover-page shares vs. diluted weighted-average shares, latest 10-Q YoY trend, and clickable SEC filing links for any of 10,400+ U.S. tickers.compare_companies_dilution— Head-to-head SEC EDGAR comparison of any two U.S. public companies across 3Y / 5Y / 10Y / Max lookback windows.get_sec_screen— Query any of the 6 live flagship quantitative SEC screens (stock-buyback-companies,stock-buyback-programs,share-dilution,negative-sbc-adjusted-fcf,rsu-tax-withholdings,insider-selling-vs-buybacks).get_superinvestor_dilution— Audit a legendary superinvestor's latest SEC Form 13F-HR U.S. equity portfolio (Warren Buffett, Duan Yongping, Li Lu, Bill Ackman, Philippe Laffont, David Tepper, Stanley Druckenmiller, Cathie Wood, Chris Hohn, Seth Klarman, Terry Smith) for weighted diluted share drift, SBC % of revenue, and True FCF margins. Passslug="list"to enumerate all 11 portfolios.search_sec_companies— Search across 10,400+ SEC EDGAR-registered U.S. public issuers by ticker or company name.
Tool Parameters Reference
Tool | Required Params | Optional Params |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example Prompts for Your AI Agent
"Audit PLTR's 5-year buybacks vs. SBC, RSU tax withholdings, and True FCF using SEC EDGAR filings, and include the exact 10-K filing links."
"Compare NVDA vs. AMD over the last 5 years: who actually shrank diluted share count and how much did each spend on buybacks vs. SBC?"
"List the top 10 flagship U.S. companies whose positive 5-year Standard FCF turns negative after subtracting stock-based compensation."
"Audit Warren Buffett's and Li Lu's latest 13F portfolios for weighted 5-year share shrinkage vs. dilution."
"Compare 12-month Form 4 insider selling vs. corporate buybacks across flagship U.S. companies."
Quick Start (Client Setup)
Zero local build, Docker container, or API key required — point your MCP client to https://weightedshares.com/mcp.
Claude Code CLI
claude mcp add --transport http weightedshares https://weightedshares.com/mcpCursor / Windsurf / Cline
Add to ~/.cursor/mcp.json (template in configs/cursor_mcp.json):
{
"mcpServers": {
"weightedshares": {
"url": "https://weightedshares.com/mcp"
}
}
}Claude Desktop (via mcp-remote)
Add to claude_desktop_config.json (template in configs/claude_desktop_config.json):
{
"mcpServers": {
"weightedshares": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://weightedshares.com/mcp"]
}
}
}OpenAI Codex CLI
Add to ~/.codex/config.toml (template in configs/codex_config.toml):
[mcp_servers.weightedshares]
url = "https://weightedshares.com/mcp"Verify Live Endpoint (Zero Dependencies)
Run the included Node.js 18+ smoke test against the live hosted server:
node scripts/mcp_smoke_test.mjsOr test directly with curl:
# Discover server manifest
curl -s https://weightedshares.com/mcp | jq
# Call get_company_buybacks_sbc for NVDA (5Y)
curl -s -X POST https://weightedshares.com/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_company_buybacks_sbc","arguments":{"ticker":"NVDA","period":"5y"}}}' | jqHard SEC Accounting Guardrails
Every MCP response enforces the same audited SEC accounting rules used on weightedshares.com/methodology:
Cover-page shares vs. diluted weighted-average shares (
dei:EntityCommonStockSharesOutstandingvs.us-gaap:WeightedAverageNumberOfDilutedSharesOutstanding) are always kept strictly separate.Never sum
buybacksUsd + rsuTaxWithholdingUsd: SEC XBRL does not distinguish issuers that report RSU net-share tax settlements on a separate financing line from issuers that fold them into common stock repurchases.Never fabricate an implied average buyback price from mismatched cash-flow vs. trade-date share tags.
Strict USD-only currency integrity: non-USD
20-F/ IFRS units (EUR,DKK,TWD,CNY) are never coerced into*_usdfields.Economic share-class equivalence: multi-class issuers like Berkshire Hathaway (
BRK-B/BRK-A) respect economic equivalence (1 Class A = 1,500 Class B) rather than naive summing.Financials & REIT FCF guardrails: balance-sheet banks, investment banks, insurers, brokerages, and REITs suppress industrial
FCF = OCF − CapEx/True FCFdistress figures and are excluded fromTrue FCF Trapsscreens.Descriptive SEC facts only: never investment advice, stock ratings, price targets, or buy/sell recommendations.
Rate Limit, Attribution & License
Public Rate Limit:
30 requests / minute / IP(no API key or signup required).Open Data Attribution (
CC BY 4.0): SEC-derived outputs returned by WeightedShares MCP are free to use in research notes, Substack newsletters, blogs, dashboards, and AI agent responses — please attribute with a link back to WeightedShares.com (and thesourceUrlreturned by the tool).Repository Code License: Configuration templates and smoke test scripts in this repository are released under the MIT License.
Contact:
hello@weightedshares.com
Docker / Local stdio Bridge
For MCP hosts or registries that run a local stdio container (such as Glama or Docker-based MCP runners), this repository also ships a zero-dependency Node.js stdio-to-Streamable-HTTP bridge (src/stdio-bridge.mjs) and Dockerfile:
docker build -t weightedshares-mcp .
docker run -i --rm weightedshares-mcpOr run directly with Node.js >= 20 (no npm install required):
node src/stdio-bridge.mjsAvailable Tools
5 toolscompare_companies_dilutionARead-onlyIdempotentInspect
Compare two U.S. public companies head-to-head on SEC EDGAR 10-K buybacks, stock-based compensation (SBC), RSU tax withholdings, True FCF (FCF minus SBC), and diluted share-count change.
Inputs: tickerA (required), tickerB (required), period.
get_company_buybacks_sbcBRead-onlyIdempotentInspect
Retrieve SEC EDGAR XBRL-backed Buybacks vs. Stock-Based Compensation (SBC), RSU tax withholdings, Standard FCF, True FCF (FCF minus SBC), cover-page shares vs. weighted-average diluted shares, and clickable 10-K/20-F/10-Q filing links for any of 10,400+ U.S. public companies.
Inputs: ticker (required), period.
get_sec_screenARead-onlyIdempotentInspect
Query WeightedShares quantitative SEC EDGAR screens across flagship U.S. companies: true share cannibals, largest buyback programs, heavy SBC diluters, negative SBC-adjusted FCF (True FCF traps, excluding banks/insurers/REITs), hidden RSU tax cash drains, or 12M Form 4 insider selling vs. buybacks.
Inputs: screen (required), limit.
get_superinvestor_dilutionBRead-onlyIdempotentInspect
Audit a legendary superinvestor's latest SEC Form 13F-HR U.S. equity holdings for weighted diluted share drift, SBC % of revenue, and True FCF margins. Pass slug='list' to enumerate all available superinvestors.
Inputs: slug (required), period.
search_sec_companiesARead-onlyIdempotentInspect
Search across 10,400+ SEC EDGAR-registered U.S. public companies by ticker or company name.
Inputs: query (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a reasonably distinct role: single-company fundamentals (get_company_buybacks_sbc), two-company head-to-head (compare_companies_dilution), cross-market screens (get_sec_screen), 13F portfolio audit (get_superinvestor_dilution), and ticker/name lookup (search_sec_companies). The main soft spot is get_company_buybacks_sbc vs. compare_companies_dilution, since an agent could approximate a comparison by calling the single-company tool twice, but the descriptions make the intended boundary clear.
All five tools use snake_case verb-first names, which is internally consistent. There is a minor deviation in verb choice (get_ x3, compare_, search_) and get_sec_screen actually behaves like a query/screen rather than a get, but the pattern is predictable overall.
Five tools is a lean but defensible scope for a niche EDGAR analytics server, and each tool covers a genuinely different workflow. The count is arguably compressed rather than generous, since get_sec_screen bundles six distinct screen types and get_company_buybacks_sbc returns many heterogenous metrics into one call.
The surface covers the core dilution/SBC workflow end-to-end: discovery, per-company metrics, peer comparison, market-wide screening, and institutional-holder analysis, with filing links to reach source documents. Gaps remain for time-series/trend retrieval, detailed Form 4 insider transaction records (only accessible indirectly via a screen), and non-U.S. coverage.
Maintenance
Related MCP Connectors
Real SEC, 13F, insider, congress & macro data your AI agent can cite. Hosted MCP, 24 tools.
SEC EDGAR financials, insider trading, and economic data for AI agents. US GAAP + IFRS.
Agent-native SEC data, 20 tools: statements assembled, any line item, filings synthesized. No key.
Primary-source SEC filing intelligence and financial/disclosure reconciliation for AI agents.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI agents to query US public company financial data from SEC filings, with tools for resolving tickers, listing filings, retrieving financial concepts, comparing companies, extracting filing sections, and full-text search. It surfaces data ambiguities like tag variations, restatements, and fiscal-year misalignment rather than hiding them.6MIT
- AlicenseNot gradedqualityBmaintenanceLets any MCP-speaking assistant look up SEC filings and fundamentals, 13F holdings, insider trades, BDC loan books, and U.S. government reference data from Treasury, FRED, FDIC, USAspending, USPTO and CFTC, with the source named on every answer. Most of its 29 tools run keyless against public sources, giving citations-backed answers without an account.66 PyPIMIT
- AlicenseAqualityBmaintenanceGives an AI agent read-only access to SEC EDGAR for company lookup, reported financial statements, individual XBRL concepts, filing and exhibit lists, filing text, segment revenue, and full-text search. Every answer carries its source accession number, form, filing date, URL, hash and retrieval time, and it needs no API key.11MIT

Beefi MCPofficial
AlicenseNot gradedqualityCmaintenanceEnables AI assistants to query SEC EDGAR data for US public companies, including financial statements, ratios, earnings, insider trades, 13F institutional holdings, filings, stock prices, and macro data. Every figure links back to the underlying 10-K or 10-Q filing.MIT