Stockportfolio MCP logo

Stockportfolio MCP

Research US-listed companies with SEC-sourced fundamentals, filings, screening, comparisons, and computed red flags.

Install Stockportfolio MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "stockportfolio-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "stockportfolio-mcp"
      ],
      "env": {
        "STOCKPORTFOLIO_API_KEY": "YOUR_VALUE_HERE",
        "MCP_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env STOCKPORTFOLIO_API_KEY=YOUR_VALUE_HERE --env MCP_API_KEY=YOUR_VALUE_HERE --transport stdio stockportfolio-mcp -- npx -y stockportfolio-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y stockportfolio-mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

stockportfolio-mcp connects AI clients to filing-grounded financial data for US-listed companies that report in USD. Its tools resolve companies, retrieve period-specific fundamentals, search and read SEC filings, answer filing-based questions, screen companies, compare filings, and calculate red flags from filed statements. Responses retain fiscal periods and SEC source links, while missing values remain unestimated. Use it for traceable financial research when filing sources matter more than anonymous access or analyst estimates.

Use cases

  • Research a company using SEC filing excerpts and supporting sources
  • Compare successive filings of the same form
  • Screen covered US-listed companies
  • Review filing-based financial red flags
  • Retrieve period-specific company fundamentals

Key features

  • SEC filing source URLs in financial responses
  • Period-specific financial statements
  • Filing search and excerpt retrieval
  • Filing question answering with supporting pulls
  • Company screening and filing comparisons
  • Computed red flags from filed statements

Tools10

What Stockportfolio MCP lets your agent do. Expand a tool for its parameters.

Self-reported~162 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 68d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · stockportfolio-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads522Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed10Callable tools this server registers over MCP.

How Stockportfolio MCP works

What stockportfolio-mcp does

stockportfolio-mcp exposes financial research tools through MCP, backed by the hosted StockPortfolio.pro service. It covers US-listed companies that report in USD and returns company identifiers, fiscal periods, and SEC filing source URLs with successful financial or filing responses.

The service focuses on source-traceable research rather than estimates. Financial statements preserve their reporting periods, filing excerpts retain their source URLs, and missing values are returned as missing. Supplemental data is identified by its source.

How it works

The hosted endpoint is available at https://www.stockportfolio.pro/mcp and supports OAuth 2.1 with dynamic client registration for clients that can connect through remote Streamable HTTP. A signed-in StockPortfolio.pro account is required for continued use, and research tools consume the allowance associated with that account.

For clients that need stdio, the npm package acts as a local bridge. It reads JSON-RPC requests from standard input, forwards them to the hosted endpoint with a bearer key, and writes the responses to standard output. Filing data, model code, and server-side logic are not bundled in the package. The bridge is stateless, so a new request can rebuild a dropped connection without session resumption.

Setup and configuration

Create or manage an API key through the StockPortfolio.pro API page. The local bridge requires Node.js 18 or newer and can be started with:

Terminal
npx -y stockportfolio-mcp

Configure the key as STOCKPORTFOLIO_API_KEY; MCP_API_KEY is also accepted. A typical MCP client entry is:

config.json
{
  "mcpServers": {
    "stockportfolio": {
      "command": "npx",
      "args": ["-y", "stockportfolio-mcp"],
      "env": { "STOCKPORTFOLIO_API_KEY": "your-key-here" }
    }
  }
}

Remote clients can connect to the hosted URL directly and complete sign-in, or send the key as an authorization bearer header when the client lacks remote-MCP sign-in. Cursor can also use its Marketplace plugin or a manual entry in the user or project mcp.json file. Restart the client after changing its MCP configuration.

Tools and capabilities

  • search_companies resolves a company name or ticker within the covered universe.
  • get_company_fundamentals retrieves period-based financial statements with SEC sources.
  • search_filings finds filing metadata by company, form, and date range.
  • get_filing returns selected sections or excerpts from an SEC filing.
  • ask_filings researches questions against filings and returns supporting pulls.
  • get_recent_filings reviews recent filings across covered companies.
  • screen_companies screens the covered company universe.
  • get_filing_changes compares recent filings of the same form for a company.
  • get_red_flags surfaces warning signs computed from filed statements.
  • sp_health provides a free liveness check.

Limitations and notes

Research calls use the account's allowance, and credit costs, plans, and trial availability can change. The local bridge does not provide anonymous keyless access. Concurrent requests may be rate-limited, and an exhausted account allowance prevents further research calls until the account has available capacity.

The package is a proxy rather than a local financial-data store. It sends the supplied key to the StockPortfolio.pro MCP endpoint and depends on that hosted service. Fund data is Yahoo-derived and not redistributable. Results are for informational research and are not investment advice.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Stockportfolio MCP

stockportfolio-mcp is an MCP server that connects AI clients to StockPortfolio.pro’s hosted US financial-data and SEC filing service. Its main tools resolve companies, retrieve filing-grounded fundamentals, search and read filings, answer questions with supporting pulls, screen companies, compare filings, and surface statement-based red flags.

Install it as a local stdio bridge with Node.js 18 or newer by configuring `npx -y stockportfolio-mcp` in your MCP client. Set `STOCKPORTFOLIO_API_KEY` or `MCP_API_KEY` to a StockPortfolio.pro API key, then restart the client.

Yes, stockportfolio-mcp works with Cursor through the hosted MCP endpoint or its Cursor Marketplace plugin. You can also add the endpoint manually to `~/.cursor/mcp.json` or the project’s `.cursor/mcp.json`, using sign-in or an authorization bearer header.

Yes, the service returns filed values without estimating missing data. Responses preserve fiscal periods and include relevant SEC filing source URLs; missing values remain missing. Coverage is limited to US-listed companies that report in USD.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewStockportfolio MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/stockportfolio-mcp?style=directory)](https://allmcps.com/mcp/stockportfolio-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/stockportfolio-mcp"><img src="https://allmcps.com/api/badge/stockportfolio-mcp?style=directory" alt="Stockportfolio MCP on AllMCPs" /></a>