What is MCP
MCP (Model Context Protocol) is an open protocol proposed by Anthropic to standardize how AI applications connect to external data sources.Simply put, MCP enables AI to:
- Discover available tools and data sources
- Call external tools to perform operations
- Understand returned structured data
Traditional vs MCP
| Method | Flow |
|---|---|
| Traditional | User → Write code → Call API → Parse data → Input to AI → Get answer |
| MCP | User → Natural language question → AI auto-calls tools → Get answer |
Core Concepts
| Concept | Description |
|---|---|
| MCP Server | Server providing tools and data, like ChainStream MCP Server |
| MCP Client | Client using tools, like Claude Desktop, Cursor |
| Tools | Functions callable by AI, like query balance, analyze wallet |
| Resources | Data resources accessible by AI |
Why MCP Matters
AI Agents Need “Hands and Eyes”
AI large models have powerful reasoning capabilities, but they:- ❌ Cannot directly access real-time data
- ❌ Cannot execute external operations
- ❌ Have knowledge cutoff dates
- ✅ Get real-time on-chain data
- ✅ Call professional tools for analysis
- ✅ Interact with the external world
AnalogyMCP to AI is like:
- Eyes → Let AI see real-time data
- Hands → Let AI execute operations
- Tools → Let AI use professional capabilities
ChainStream MCP Capabilities
ChainStream MCP Server exposes blockchain data and analysis capabilities to AI applications via the MCP protocol. MCP Endpoint:https://mcp.chainstream.io/mcp
Capability Matrix
ChainStream MCP Server supports all REST API and WebSocket subscription features in API Reference:- Token API
- Wallet API
- Trade API
- DEX API
- Ranking API
- KYT API
- WebSocket
| Feature | Description |
|---|---|
| Token Search | Search tokens by name/symbol |
| Token Info | Get token basic info and metadata |
| Token Price | Real-time and historical prices |
| Token Stats | Volume, market cap statistics |
| Holder Analysis | Holder distribution and top holders |
| Candlestick Data | OHLCV data for various periods |
| Market Data | Liquidity, trading pair info |
| Security Check | Token contract security analysis |
| Creation Info | Token creator and time |
| Mint/Burn History | Token minting and burning records |
| Liquidity Snapshots | Historical liquidity data |
Supported Blockchains
- EVM Chains
- Non-EVM Chains
| Chain | Identifier | Status |
|---|---|---|
| Ethereum | ethereum | ✅ |
| BNB Chain | bsc | ✅ |
| Polygon | polygon | ✅ |
| Arbitrum | arbitrum | ✅ |
| Optimism | optimism | ✅ |
| Base | base | ✅ |
| Avalanche | avalanche | ✅ |
Supported Platforms
Claude Desktop
Officially supported MCP client with the most complete feature support.| Feature | Status |
|---|---|
| Tool Calling | ✅ |
| Multi-turn Dialog | ✅ |
| Streaming Response | ✅ |
Cursor IDE
Developer-friendly AI coding assistant with MCP integration.| Feature | Status |
|---|---|
| Tool Calling | ✅ |
| Code Context | ✅ |
Custom Agent
Any client following MCP protocol can integrate.Typical Use Cases
Case 1: AI Research Assistant
Need: Use AI to analyze a specific wallet’s trading behaviorCase 2: Smart Money Tracking
Need: Track Smart Money large tradesAI Returns Results
In the past 24 hours, the following Smart Money addresses bought ARB:
-
0xabc...123(Labels: whale, defi_expert)- Amount: 500,000 ARB
- Value: $450,000
- Time: 2 hours ago
-
0xdef...456(Labels: institution)- Amount: 200,000 ARB
- Value: $180,000
- Time: 5 hours ago
Case 3: Token Security Analysis
Need: Analyze token securityTechnical Architecture
Data Flow
Difference from Traditional API
| Feature | Traditional API | MCP |
|---|---|---|
| Call Method | HTTP REST | Protocol Standardized |
| Target User | Developers | AI Models |
| Parameter Handling | Manual Construction | AI Auto-inference |
| Error Handling | Status Codes | Semantic Errors |
| Context | Stateless | Session Context Maintained |
Authentication
ChainStream MCP Server uses Access Token for authentication.Getting Access Token
- Create an App in ChainStream Dashboard
- Get Client ID and Client Secret
- Use credentials to generate Access Token (see Authentication docs)
- Configure Access Token in MCP Server environment variables
Environment Variables
| Variable | Description |
|---|---|
CHAINSTREAM_ACCESS_TOKEN | JWT Access Token |
Access Token is valid for 24 hours. After expiration, you need to regenerate. We recommend implementing an automatic refresh mechanism in your application.
Permission Control
Control tool access through API Scope:| Scope | Description |
|---|---|
| Default | Read-only data query tools |
webhook.read | Webhook read permission |
webhook.write | Webhook write permission |
kyt.read | KYT read permission |
kyt.write | KYT write permission |
Security Model
Authentication
Authentication
MCP Server uses JWT Access Token for authentication. Access Token is obtained from the Auth service using Client ID and Client Secret. All API requests require a valid token.
Permission Control
Permission Control
Control tool access through API Scope:
- Read-only tools: Available by default
- Trading tools: Require explicit authorization
- KYT tools: Require
kyt.readscope
Audit Logs
Audit Logs
All tool calls are fully logged and viewable in Dashboard.

