Onchain Stocks MCP logo

Onchain Stocks MCP

Compare Solana tokenized stocks by issuer, size, slippage, risk, and cost against the real share price.

Install Onchain Stocks 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": {
    "onchain-stocks-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "onchain-stocks-mcp"
      ],
      "env": {
        "TOKENS_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 TOKENS_API_KEY=YOUR_VALUE_HERE --transport stdio onchain-stocks-mcp -- npx -y onchain-stocks-mcp

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

Automated check passed— started and listed 6 tools correctly ().

Overview

onchain-stocks-mcp is a read-only MCP server for comparing tokenized stocks on Solana with one another and, when configured, with their corresponding real shares. It uses Jupiter for buy-route quotes and tokens.xyz for token metadata, share prices, and risk data. Reach for it when evaluating issuer pricing, purchase-size slippage, redeemability, or the all-in cost of a tokenized stock. It never trades, stores keys, or provides investment advice.

Use cases

  • Compare issuers for the same tokenized stock
  • Estimate slippage at several purchase sizes
  • Check tokenized stock pricing against the real share
  • Review redeemability before choosing a token
  • Inspect market risk grades for supported stocks

Key features

  • Solana tokenized-stock catalog
  • Issuer and price comparison
  • Multi-size Jupiter quotes
  • Real-share cost comparison
  • Redeemability and mint metadata
  • A/B/C market risk grades

Tools6

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

Verified live~620 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.

5/5 checks healthy over the last 22d

What it can do

From the 6 tools this server returned when we ran it; 6 declare their own safety hints.

Handles credentials · 6Makes network requests · 6Read-only tools · 6
Network at startup3 connections
Files written at startupNone
Install scriptsprepare
npm provenanceSigned build
Package age13 days
Maintainers1

Observed 2026-11-14 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

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

Adoption & maintenance

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

npm downloads1.7kPackage downloads in the last 30 days.
Last commit12d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed6Callable tools this server registers over MCP.

How Onchain Stocks MCP works

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:

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

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

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 Onchain Stocks MCP

onchain-stocks-mcp is an MCP server that connects AI clients to tokenized stocks on Solana, Jupiter buy-route quotes, and tokens.xyz market data. Its main tools list tokens, compare issuers, estimate size-based slippage, search stocks, compare buys with real shares, and return risk scores. It is read-only and never trades.

Install it with npx using `npx -y onchain-stocks-mcp` and register that command in your MCP client. Claude Code can use `claude mcp add onchain-stocks -- npx -y onchain-stocks-mcp`; Claude Desktop and Cursor use the equivalent JSON configuration. Node.js 22 or newer is required.

No, the basic token listing, issuer comparison, and size-quote tools work without a key. Set `TOKENS_API_KEY` to enable stock search, real-share comparisons, share prices, and risk scores from tokens.xyz.

No, its quotes are Jupiter route estimates rather than executed fills or issuer mint and redemption prices. Thin routes can make one token appear unusually expensive, and the server returns API errors instead of guessing when a quote cannot be obtained.

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 PreviewOnchain Stocks MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/onchain-stocks-mcp?style=directory)](https://allmcps.com/mcp/onchain-stocks-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/onchain-stocks-mcp"><img src="https://allmcps.com/api/badge/onchain-stocks-mcp?style=directory" alt="Onchain Stocks MCP on AllMCPs" /></a>