# Stockportfolio MCP

> Stockportfolio MCP is an MCP server for finance and payments. Filing-grounded US company financials and SEC filing research with source links. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** API, CLI
- **Repository:** https://github.com/avisre/stockportfolio-mcp
- **MCP Registry name:** io.github.avisre/stockportfolio-mcp
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments), [analytics and data](https://ai-powered.com/categories/analytics-and-data)
- **Listing updated:** 2026-11-23

## About

Stockportfolio MCP answers US-listed company questions from SEC filings. Figures keep their fiscal periods and source links, missing values are returned as missing rather than estimated, and coverage is limited to companies reporting in USD.

Ten tools resolve companies, return period-based statements, search and read filings, ask questions against filings, list recent filings, screen the covered universe, compare a company's recent filings of the same form and surface red flags computed from filed statements. The hosted server supports OAuth 2.1 and dynamic client registration; a local npm bridge forwards requests with an API key for stdio-only clients.

Research calls use an account allowance, and the README refers to the API page for plans instead of listing prices. It is informational research, not investment advice.

## Features

- **Sourced figures:** Each response includes company, period and filing URL.
- **Filing search:** Search by company, form and date.
- **Filing excerpts:** Read selected parts of a filing.
- **Question answering:** Research a question against filings.
- **Red flags:** Warning signs computed from filed statements.
- **Filing comparison:** Compare recent filings of the same form.

## Good for

- Pull multi-year statements for a company
- Compare this year's 10-K with last year's
- Screen covered companies
- Find recent filings in a sector

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add stockportfolio-mcp --env STOCKPORTFOLIO_API_KEY='<STOCKPORTFOLIO_API_KEY>' -- npx -y stockportfolio-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

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

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

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

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "stockportfolio-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "stockportfolio-mcp"
      ],
      "env": {
        "STOCKPORTFOLIO_API_KEY": "<STOCKPORTFOLIO_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add stockportfolio-mcp --env STOCKPORTFOLIO_API_KEY='<STOCKPORTFOLIO_API_KEY>' -- npx -y stockportfolio-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.stockportfolio-mcp]
command = "npx"
args = ["-y", "stockportfolio-mcp"]
env = { STOCKPORTFOLIO_API_KEY = "<STOCKPORTFOLIO_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

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

Or run: gemini mcp add -s user -e STOCKPORTFOLIO_API_KEY='<STOCKPORTFOLIO_API_KEY>' stockportfolio-mcp npx -- -y stockportfolio-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

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

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

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

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

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

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "stockportfolio-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "stockportfolio-mcp"
      ],
      "env": {
        "STOCKPORTFOLIO_API_KEY": "<STOCKPORTFOLIO_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

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

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

From the tool list in its README, going by the names, 7 of 10 tools read data; 3 names don't say. From the server's own tool labels and tool names; not verified by us.

- `search_companies` (name suggests: reads): Resolve a name or ticker.
- `get_company_fundamentals` (name suggests: reads): Period-based financial statements.
- `search_filings` (name suggests: reads): Search filing metadata.
- `get_filing` (name suggests: reads): Read filing excerpts.
- `ask_filings`: Research a question against filings.
- `get_recent_filings` (name suggests: reads): Recent filings across covered companies.
- `screen_companies`: Screen covered companies.
- `get_filing_changes` (name suggests: reads): Compare recent filings.
- `get_red_flags` (name suggests: reads): Warning signs from filed statements.
- `sp_health`: Liveness probe.

## FAQ

### Is an API key needed?

The npm bridge needs STOCKPORTFOLIO_API_KEY; the hosted server uses sign-in.

### Are missing values estimated?

No.

### Which companies?

US-listed companies reporting in USD.

### Where are prices?

On the StockPortfolio.pro API page.

### How do I add Stockportfolio MCP to Claude Code?

Run this command in your terminal: claude mcp add stockportfolio-mcp --env STOCKPORTFOLIO_API_KEY='<STOCKPORTFOLIO_API_KEY>' -- npx -y stockportfolio-mcp

### What are the best alternatives to Stockportfolio MCP?

The closest alternatives to Stockportfolio MCP are Agent-Native Analytics, Solana MCP by Vybe, dashboard-icons, Google Ads + Meta Ads + SEO/GEO MCP and Tapetide - Indian Stock Market MCP.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Agent-Native Analytics is an open-source MCP server for analytics and data.
- [Solana MCP by Vybe](https://ai-powered.com/mcp/solana-mcp-by-vybe): Solana MCP by Vybe is an MCP server for finance and payments.
- [dashboard-icons](https://ai-powered.com/mcp/dashboard-icons): dashboard-icons is an open-source MCP server for analytics and data.
- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [Pitot](https://ai-powered.com/mcp/pitot): Pitot is an open-source MCP server for cloud and infrastructure.
- [World Monitor](https://ai-powered.com/mcp/world-monitor): World Monitor is a freemium MCP server for analytics and data.
- [NostrPulse](https://ai-powered.com/mcp/nostrpulse): NostrPulse is an open-source MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/stockportfolio-mcp
