headless-records-mcp

headless-records-mcp

Enables MCP agents to access public SEC Form 4 insider filing data via a local API wrapper, supporting tools for assessing insider activity, checking data freshness, and retrieving filing provenance without providing financial advice.

Category
访问服务器

README

Headless Records MCP Server

A local Model Context Protocol (MCP) stdio server that gives agents structured, non-advisory access to public SEC Form 4 insider filing data via the hosted Headless Records API.

The server is a thin wrapper: it validates tool input, calls https://api.headlessrecords.dev, and returns the API's JSON responses as formatted text. It does not call SEC directly, does not connect to a database, and does not run ingestion jobs.

Full API documentation: headlessrecords.dev · OpenAPI spec

Safety and Scope

  • Responses summarize public SEC Form 4 filing data from a bounded, watched-ticker universe. They do not imply full-market coverage.
  • Output is not financial advice. The server provides no buy, sell, hold, bullish, bearish, price prediction, alpha, trading signal, or investment recommendation guidance.
  • API caveats, methodology notes, request IDs, timestamps, and source provenance are preserved in tool output so agents can show context rather than over-compress results.

Requirements

  • Node.js 20 or later (uses the built-in fetch)
  • A Headless Records API key (hr_live_ prefix) — request design partner access
  • No key yet? Try the open preview endpoint:
  curl https://api.headlessrecords.dev/v1/ticker/TSLA/preview

Install and Build

npm install
npm run build

The compiled server is written to dist/index.js.

Configuration

The server is configured entirely through environment variables read from the process. Export them in your shell or set them in your MCP client config. (.env.example is a reference file only; the server does not auto-load .env.)

Required:

  • HEADLESS_RECORDS_API_KEY — your API key, sent as the X-API-Key header.

Optional:

  • HEADLESS_RECORDS_API_BASE_URL — defaults to https://api.headlessrecords.dev.
  • HEADLESS_RECORDS_TIMEOUT_MS — per-request timeout, defaults to 10000.

Do not commit real API keys.

Running

Run from source:

HEADLESS_RECORDS_API_KEY=hr_live_REPLACE_ME npm start

Run the built stdio server:

HEADLESS_RECORDS_API_KEY=hr_live_REPLACE_ME node /absolute/path/to/dist/index.js

MCP Client Configuration

Example configuration for Cursor, Claude Desktop, or any MCP client, after npm run build:

{
  "mcpServers": {
    "headless-records": {
      "command": "node",
      "args": ["/absolute/path/to/dist/index.js"],
      "env": {
        "HEADLESS_RECORDS_API_KEY": "hr_live_REPLACE_ME"
      }
    }
  }
}

Tools

get_freshness

Returns freshness status for the configured watched-ticker universe.

{
  "freshness_window_hours": 24
}
  • freshness_window_hours (optional integer, 1–168, default 24)

Calls GET /v1/freshness.

assess_insider_activity

Returns a deterministic, non-advisory summary of reported SEC Form 4 insider activity for a ticker. Tickers are normalized to uppercase before the API call.

{
  "ticker": "TSLA",
  "period": "90d",
  "freshness_window_hours": 24
}
  • ticker (required string)
  • period (optional, one of 30d, 90d, 180d, default 90d)
  • freshness_window_hours (optional integer, 1–168, default 24)

Calls GET /v1/insider-activity/{ticker}/assessment.

get_filing_provenance

Returns source provenance for an imported SEC Form 4 filing, including the source document URL, retrieval timestamp, and SHA-256 hash when available.

{
  "accession_number": "0000001001-26-000123"
}
  • accession_number (required string)

Calls GET /v1/provenance/filing/{accession_number}.

Error Behavior

Tool errors are returned as structured JSON with a stable code field:

  • Missing, invalid, or revoked API keys surface as unauthorized (HTTP 401).
  • Rate limits surface as rate_limited (HTTP 429), including retry_after when the API provides it.
  • Timeouts, network failures, and invalid responses surface as timeout, network_error, and invalid_json.
  • API request IDs are preserved in error output when available.
  • Raw hr_live_... API keys are redacted from all error text.

Development

npm test

Tests run with Vitest and use mocked HTTP; they never call the live API.

Known Limitations

  • Local stdio server only; this is not a hosted remote MCP server.
  • Requires a valid HEADLESS_RECORDS_API_KEY and inherits the API's per-key rate limits.
  • Coverage is bounded to the watched-ticker universe and imported filings; it does not fetch SEC data live.
  • Does not manage watched tickers, billing, or authentication flows.
  • Returns formatted JSON text; it does not transform API output into advice.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选