🟣🔎 solscan-mcp: A Solscan API MCP Server in Rust
LocalAbout 🟣🔎 solscan-mcp: A Solscan API MCP Server in Rust
solscan-mcp is an MCP server written in Rust that queries Solana blockchain data through the Solscan Pro API. It is aimed at users who want large language models to look up tokens, account activity and transaction details. It is installed from the command line and is designed to ignore errors without stopping the flow.
Key features
- 01Token information queries
- 02Account activity queries
- 03Transaction detail queries
- 04Implemented in Rust
- 05Errors handled without interrupting the flow
Use cases
- 01Querying Solana transaction details in natural language
- 02Analyzing on-chain activity of an account
- 03Supplying blockchain data as context for investigations
MCP support
This project is an MCP server that exposes token, account and transaction query tools to MCP clients, using data from the Solscan Pro API.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project README🟣🔎 solscan-mcp: A Solscan API MCP Server in Rust
Overview
A Model Context Protocol (MCP) server for interacting with the Solscan Pro API for Solana blockchain data. This server provides tools to query token information, account activities, and transaction details on the Solana blockchain via Large Language Models.
Examples
Simple prompts:
https://github.com/user-attachments/assets/2f2586b2-ed9d-4d4d-bda4-0154b9b98cde
You can also use it for much more complex queries, like analyzing criminal activity combining multiple MCPs and correct context.
For example, upload a csv list of suspected addresses, then using perplexity-mcp research tool LLM will add info to context window on how investigators define criminal wallets based on their activity (mev, dusting, poisoning, sandwiched, etc) -> solscan-mcp will use this context to investigate the wallets and provide a report.
Features
For detailed documentation of all available tools, see TOOLS.md.
Installation
Prerequisites:
- Rust toolchain (install via rustup) – for regular usage
- Docker – for Docker usage
- Solscan Pro API key. You can obtain one from Solscan APIs.
Regular
cargo install solscan-mcp
where solscan-mcp # -> /Users/$username/.cargo/bin/solscan-mcp
Add the following to your claude_desktop_config.json or claude_config.json:
{
"mcpServers": {
"solscan-mcp": {
"command": "/Users/$username/.cargo/bin/solscan-mcp",
"args": [],
"env": {
"SOLSCAN_API_KEY": "your_solscan_api_key"
}
}
}
}
Docker
WIP, will be available soon.
Code quality Notes
I treat MCPs like useful scripts, as the structure of the APIs they rely on can always change. So, api.rs could definitely be split into multiple APIs based on Solscan namespaces. My main goal was to make it work and be easy to maintain, while ensuring errors are ignored without breaking the flow (unlike many MCPs I've tested in Python/TS, which crash painfully when they don't gracefully handle simple errors).
License
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.