base-stock-sentinel-mcp
Reads Coinbase B20 Tokenized Stocks API metadata and Base protocol contracts to support tokenized-stock due diligence and multiplier-adjusted pricing.
Base Stock Sentinel MCP (base-stock-sentinel-mcp)
Autonomous Base B20 tokenized-stock due diligence, corporate-action multiplier drift radar, and Base DEX liquidity/slippage routing server — built for AI agents over Streamable HTTP MCP and x402 v2 Base-USDC micropayments on Cloudflare Workers.
Compliance & Scope Notice: 100% read-only onchain analytics and liquidity routing signals. Holds zero private keys, executes zero trades, does not custody funds or offer US securities brokerage/solicitation. Not investment advice.
Why Base Stock Sentinel?
Onchain tokenized equities on Base (Coinbase B20 Tokenized Stocks) introduce two pitfalls that break naive crypto trading & research agents:
Corporate-Action Multiplier Drift (
multiplier != 1): B20 tokens adjust their share-to-token ratio (multiplier) for reinvested dividends, stock splits, and corporate actions (e.g.,GOOGLcat1.000377...,SANcat1.01057...,SNDKcat8.0). Comparing raw DEX token price directly against an underlying stock quote misprices the asset unless adjusted bydexPrice / multiplier.Fragmented Base DEX Liquidity & Paper-Depth Traps: Liquidity splits across Aerodrome Slipstream and Uniswap V3 pools on Base with varying fee tiers, spreads, and one-sided depth. A naive order can suffer severe slippage or cross-pool mispricing.
Base Stock Sentinel combines live public Coinbase B20 metadata with live GeckoTerminal Base DEX pool telemetry to deliver deterministic, SHA-256 attested due-diligence reports in one MCP or REST call.
Related MCP server: Base Pulse
Public Zero-Key Data Sources
Coinbase B20 Tokenized Stocks API:
GET https://api.coinbase.com/v1/tokenized-stocks&GET https://api.coinbase.com/v1/tokenized-stocks/chains(Base8453protocol contracts + ~100 B20 equities)GeckoTerminal Base DEX API:
GET https://api.geckoterminal.com/api/v2/networks/base/tokens/{address}/pools(Aerodrome / Uniswap V3 reserves, 24h volume, buys/sells, FDV, price changes)Deterministic Offline Fixtures (
?demo=1/sample: true): 5 structured B20 samples (NVDAc,GOOGLcwith non-1 multiplier,MSTRc,AAPLc, andTHINcultra-thin liquidity trap) for zero-network verification and graceful 429 fallback.
Endpoints & Pricing (Base eip155:8453 USDC via x402 v2)
Route / MCP Tool | Price (USDC) | Description |
| Free ( | Browser |
| Free ( | Full Base B20 catalog + |
|
| Deep single-stock due diligence: multiplier-adjusted equivalent price, cross-pool spread, 3-tier ( |
|
| Side-by-side comparison of 2–5 Base B20 stocks ranked by composite safety & executable depth, with |
|
| Full-catalog scan for corporate-action multiplier drift ( |
| Streamable HTTP | MCP tools: |
| Free ( | x402 v2 discovery manifest, strict OpenAPI 3.1 + |
Append ?sample=true to any POST /api/* route or pass {"sample": true} in MCP tools/call for a free deterministic offline sample response.
Quick Start
npm install
npx tsc --noEmit
npm test
npm run devExample Requests
# 1. Free B20 catalog (live or offline ?demo=1)
curl -sS "http://localhost:8787/api/catalog?demo=1"
# 2. Free offline sample inspection (zero outbound fetch)
curl -sS -X POST "http://localhost:8787/api/stock-inspect?sample=true" \
-H "Content-Type: application/json" \
-d '{"query":"GOOGLc"}'
# 3. Inspect live x402 v2 HTTP 402 Base-USDC payment challenge
curl -i -sS -X POST "http://localhost:8787/api/stock-inspect" \
-H "Content-Type: application/json" \
-d '{"query":"NVDAc"}'Connect Claude Desktop / Cursor (Streamable HTTP MCP)
{
"mcpServers": {
"base-stock-sentinel-mcp": {
"type": "http",
"url": "https://base-stock-sentinel-mcp.yan8925298.workers.dev/mcp"
}
}
}License
MIT — see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Real-time crypto & tokenized equity intelligence MCP over x402 USDC on Base mainnet.
Pay-per-call crypto market intelligence for AI agents. USDC on Base via x402.
Market data and web intelligence for AI agents, paid per call in USDC on Base via x402.
Calculation and validation tools for AI agents. Pay per call in Base USDC via x402.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides real-time stock quotes and batch market data to AI agents, secured via x402 micropayments on Base Mainnet.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to run honeypot and owner-power safety checks on Base tokens and to read wallet ETH and USDC balances, with every answer sourced from real chain data and paid per call in USDC via x402.MIT
- AlicenseAqualityBmaintenanceEnables MCP-capable agents to run pay-per-call trading checks and quant tools, including pre-trade GO/CAUTION/NO_GO verdicts, futures event gates, session briefs, SEC insider-buy lookups, Base token safety verdicts, and small calculators, with automatic x402 USDC payments on Base.21524 npm1MIT
- AlicenseBqualityBmaintenanceEnables MCP clients to query live Base chain data — lending yields, cross-venue arbitrage spreads, pool withdrawability, token risk checks, allocation plans and wallet health — with each paid call settled in USDC over x402 without an API key or any ETH on the buyer's side. Results come from current chain state rather than a stale database, at per-call prices small enough for an agent to consult on every decision.7MIT