# stockportfolio-mcp [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/avisre/stockportfolio-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 522  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/stockportfolio-mcp

## Description
Filing-grounded US financial data — every value returns with its SEC filing source. No estimates.

## Tools
Capabilities this server exposes over MCP:

- **search_companies** — Resolve a company name or ticker to a covered US-listed company.
- **get_company_fundamentals** — Period-based financial statements with SEC filing sources.
- **search_filings** — Search filing metadata by company, form, and date range.
- **get_filing** — Read selected excerpts from an SEC filing.
- **ask_filings** — Research a question against company filings and return supporting pulls.
- **get_recent_filings** — Review recent filings across covered companies.
- **screen_companies** — Screen the covered company universe.
- **get_filing_changes** — Compare a company's recent filings of the same form.
- **get_red_flags** — Surface warning signs computed from filed statements.
- **sp_health** — Free liveness probe.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "stockportfolio-mcp": {
    "command": "npx",
    "args": ["-y","stockportfolio-mcp"],
    "env": {
      "STOCKPORTFOLIO_API_KEY": "",
      "MCP_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `STOCKPORTFOLIO_API_KEY`, `MCP_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## 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:

```bash
npx -y stockportfolio-mcp
```

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

```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.

_Full upstream README: https://allmcps.com/mcp/stockportfolio-mcp/readme_

