# onchain-stocks-mcp [Health: Active]

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

## Description
MCP server: what a tokenized stock on Solana really costs against the real share

## Tools
Capabilities this server exposes over MCP:

- **list_tokens** — List the tokenized stocks this server covers without an API key: symbol, issuer, redeemability and mint. Filter by ticker or company name, or leave the query empty for all.
- **compare_issuers** — Quote the same USDC buy for every issuer's token of one stock (e.g. xStock vs Ondo) and rank them by price paid per token. No API key needed; with one, each token is also compared to the real share price.
- **quote_sizes** — Quote buying one token at several USDC sizes through Jupiter and show how much more each size pays per token than the smallest (slippage). No API key needed. The mint must come from list_tokens.
- **search_stocks** — Find tokenized versions of a stock on Solana. Returns the real share price and its age, and every token with issuer, redeemability, liquidity tier, listed price and mint.
- **quote_buy** — Quote buying a token with USDC through Jupiter. Returns the price paid per token and the all-in cost against the real share price. The mint must come from search_stocks.
- **risk_score** — Market risk score (0 to 100, grade A/B/C) for a token, from liquidity, holder spread and trading activity. The mint must come from search_stocks.

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

```json
"mcpServers": {
  "onchain-stocks-mcp": {
    "command": "npx",
    "args": ["-y","onchain-stocks-mcp"],
    "env": {
      "TOKENS_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `TOKENS_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 onchain-stocks-mcp does

onchain-stocks-mcp evaluates tokenized stocks available on Solana. Its built-in catalog covers roughly 130 tokens representing about 85 stocks and records each token's issuer, mint address, and redeemability. The server can compare different issuers for the same underlying stock, show how purchase size affects the quoted price, and calculate the cost of buying a token relative to the corresponding real share.

The server is read-only. It does not execute swaps, hold private keys, or present its results as investment advice. The available market universe is limited to Solana.

## How it works

Buy estimates come from Jupiter's lite API. These are route quotes rather than completed fills, and they are not the issuer's own mint or redemption prices. A token that appears substantially more expensive than other versions of the same stock may have a thin route. The server returns quote errors rather than inventing a price.

The token catalog is sourced from api.tokens.xyz and refreshed weekly through a pull-request workflow. Jupiter quotes are cached for 15 seconds when identical and retried with backoff. The free Jupiter endpoint permits a short burst of requests followed by approximately one quote every two seconds per IP; because each user runs the server locally, that limit applies per user.

Real-share comparisons, stock searches, and risk data use api.tokens.xyz and require a tokens.xyz API key. Share prices can remain unchanged outside US market hours, so consumers should check the returned sharePriceAgeMinutes value. Tokens representing the same stock can also differ in redeemability and dividend treatment; the redeemable field should be reviewed before comparing them.

## Setup and configuration

Node.js 22 or newer is required. The package can be started with npx. For Claude Code, register it with:

```bash
claude mcp add onchain-stocks -- npx -y onchain-stocks-mcp
```

Claude Desktop and Cursor can use an MCP configuration with `npx` as the command and `-y`, `onchain-stocks-mcp` as its arguments:

```json
{
  "mcpServers": {
    "onchain-stocks": {
      "command": "npx",
      "args": ["-y", "onchain-stocks-mcp"]
    }
  }
}
```

The basic tools work without an API key. Set `TOKENS_API_KEY` to enable real-share prices, stock search, and risk scoring. In a Claude Code command, pass the variable before the `--` separator; in a JSON client configuration, place it in the server's `env` object.

## Tools and capabilities

- `list_tokens` returns the covered tokens, issuers, mint addresses, and redeemability details.
- `compare_issuers` ranks the quoted cost of the same purchase across issuers such as xStock, Ondo, and Backpack. With a key, it also compares the result with the real share.
- `quote_sizes` quotes one token at up to five purchase sizes and reports the additional per-token cost relative to the smallest size.
- `search_stocks` finds tokens for a stock and includes the real share price and its age when configured with a key.
- `quote_buy` reports the all-in purchase cost against the real share price.
- `risk_score` returns a market risk score from 0 to 100 with an A, B, or C grade.

The catalog can lag newly launched tokens until its next refresh. Real-share data requires the paid or provisioned tokens.xyz access path described by the API key configuration.

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

