BaseStock Guard
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
BaseStock Guard (base-stock-agent)
Zero-dependency Agentic Stock Finance SDK, CLI pre-trade guardrail, Live Web Verifier, and MCP Server (stdio + HTTP POST /mcp) for Coinbase Tokenized Stocks on Base (Chain 8453).
Live Web App (Chainlink Direct RPC): https://bfat-6z.github.io/base-stock-agent/
Sample Live Onchain Audit: sample-output/base-stocks-audit.md
Built for Base Stocks Maxxing Season — Agentic Stock Finance Track.
Why Autonomous Stock Agents Need This
When integrating Coinbase's B20 tokenized stocks (/v1/tokenized-stocks), naive swap or portfolio bots fail on four real production edge cases:
total_supplyvs underlying share equivalents: Corporate actions (dividends, splits) update each contract's B20/ERC-8056multiplier(e.g.SNDKcat8.0000x,NVDAcat1.0005x,GOOGLcat1.0004x). RawbalanceOfand rawtotal_supplydo not equal 1:1 shares.Omitted
nav_pricefields:/v1/tokenized-stocksomitsnav_priceon many responses; you must join/nav-feeds(normalizing EIP-55 checksums) and read Chainlinkdecimals()+latestRoundData()directly from Base RPC (eth_callbatch).Unpriced long-tail stocks: Only a subset of live positive-supply tokens (e.g. 13 out of 236) have configured Chainlink NAV feeds; trading unpriced tokens blindly risks unbounded slippage.
US Equity Off-Hours Holds vs Stale Oracles + B20 Pauses: Distinguish normal weekend/overnight NAV holds from genuine oracle staleness and detect
paused_featuresbefore routing orders.
Related MCP server: Trading Signals MCP
Quickstart (Zero API Keys, Zero Gas, Node >= 20)
# Scan live Base tokenized stocks + batched Base RPC Chainlink NAV verification
node ./bin/base-stock-agent.mjs scan
# Pre-trade safety guardrail for an AI trading agent
node ./bin/base-stock-agent.mjs guard SNDKc --json
# Check a Base wallet's tokenized stock exposure (multiplier-adjusted)
node ./bin/base-stock-agent.mjs wallet 0xYourBaseAddress
# Launch live dashboard + REST API + HTTP MCP endpoint (http://127.0.0.1:4790)
node ./bin/base-stock-agent.mjs serve --port 4790
# Run as a stdio MCP server for Claude / Cursor / AgentKit
node ./bin/base-stock-agent.mjs mcpMCP Tools Exposed (tools/list)
scan_base_tokenized_stocks— Live paginated Coinbase API + batched ChainlinklatestRoundData()scan.guard_tokenized_stock_trade— Deterministic PASS/BLOCK check before agent trade execution.inspect_wallet_stock_exposure— Zero-key BasebalanceOfbatch with corporate-action multiplier math.
Verification
npm testTool 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.
On-chain security and market intelligence for trading agents on Base.
Pre-trade risk gating and verifiable decision evidence for AI trading agents. Oracle-backed price/safety checks across Base, Solana, Hyperliquid and BNB, plus signed receipts and portable evidence bundles for any agent action.
Compliance MCP for AI agents: sanctions & KYT screening on 50+ chains, stablecoin-freeze, oracle.
Related MCP Servers
- AlicenseBqualityCmaintenanceMCP server exposing 17 pay-per-call web, finance, legal and onchain utilities for AI agents: crypto readers and Base deployer intelligence, SEC EDGAR filings, OFAC sanctions checks, insider transactions, 13F holdings, and multi-jurisdiction caselaw and legislation search. Pay per call in USDC on Base via x402 or MPP.17MIT
- 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
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients and AI agents to access cross-chain spot trading, tokenized stocks, and perpetual futures through a local stdio server, with JSON outputs and locally signed transactions.174 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables agents to query live price-safety verdicts, token listings, authorized-participant flows, recent events, daily briefs, and natural-language research answers for Coinbase tokenized stocks on Base.MIT