You signed in with another tab or window. Reload
to refresh your session. You signed out in another tab or window. Reload
to refresh your session. You switched accounts on another tab or window. Reload
to refresh your session. Dismiss alert
FarseenSh / GOATsolana-mcp Public
A Model Context Protocol (MCP) server that enables Claude to access, analyze, and visualize Solana blockchain data through natural language conversations.
5 stars
0 forks
Branches
Tags
Activity
Notifications
You must be signed in to change notification settings
main
Go to file
Code
| Name | | Name | Last commit message | Last commit date |
| --- | --- | --- | --- |
| Latest commit
-------------
FarseenSh
Add complete project files
Mar 16, 2025
b4bc954
ย ยทย Mar 16, 2025
History
-------
2 Commits
| | |
| .env.example | | .env.example | Add complete project files | Mar 16, 2025 |
| .gitignore | | .gitignore | Add complete project files | Mar 16, 2025 |
| README.md | | README.md | Add complete project files | Mar 16, 2025 |
| claude_desktop_config.example.json | | claude_desktop_config.example.json | Add complete project files | Mar 16, 2025 |
| package.json | | package.json | Add complete project files | Mar 16, 2025 |
| tsconfig.json | | tsconfig.json | Add complete project files | Mar 16, 2025 |
| View all files | | |
A Model Context Protocol (MCP) server that enables Claude to access, analyze, and visualize Solana blockchain data through natural language conversations.
git clone https://github.com/yourusername/GOATsolana-mcp.git
cd GOATsolana-mcp
npm install
# or
pnpm install
npm run build
# or
pnpm build
Create an .env
file in the root directory with the following environment variables (or copy from .env.example
):
BIRDEYE_API_KEY=your_birdeye_api_key
COINGECKO_API_KEY=your_coingecko_api_key
ALLORA_API_KEY=your_allora_api_key
HELIUS_RPC_URL=your_helius_rpc_url
DEFAULT_WALLET_ADDRESS=optional_default_wallet_address
Configure Claude Desktop to use the MCP server by creating a claude_desktop_config.json
file in your Claude Desktop application data directory:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
Add the following content, replacing /path/to/GOATsolana-mcp
with the absolute path to your project:
{
"mcpServers": {
"solana-viz-mcp": {
"command": "node",
"args": ["--input-type=module", "/path/to/GOATsolana-mcp/build/index.js"],
"env": {
"BIRDEYE_API_KEY": "your_birdeye_api_key",
"COINGECKO_API_KEY": "your_coingecko_api_key",
"ALLORA_API_KEY": "your_allora_api_key",
"HELIUS_RPC_URL": "your_helius_rpc_url",
"DEFAULT_WALLET_ADDRESS": "optional_default_wallet_address"
}
}
}
}
Important: The
--input-type=module
flag is critical for Node.js to correctly load the ES module. Without this flag, Claude Desktop will encounter a "Cannot find module" error, even if the file exists.
npm start
This project uses ES modules (import/export) instead of CommonJS (require/module.exports). The Claude Desktop configuration includes the --input-type=module
flag which is essential for Node.js to correctly load the modules.
The current implementation uses mock implementations for some of the GOAT SDK plugins. This is because of interface mismatches between the plugin APIs and the expected interfaces in the code. In a future update, these mocks will be replaced with adapters to the real implementations.
set_wallet
: Set or change the active wallet address for analysisget_token_data
: Retrieve comprehensive token information and metricsget_wallet_tokens
: Analyze token holdings in a wallet addressget_price_history
: Fetch historical price data for a tokenget_token_pairs
: Analyze trading pairs across DEXesget_trending_tokens
: Identify currently trending tokens on Solanaget_price_prediction
: Generate AI-driven price forecasts for tokensget_token_security
: Evaluate security risks for tokens and protocolsgenerate_sankey_diagram
: Visualize flows between entities (tokens, protocols, wallets)generate_treemap
: Visualize hierarchical data with nested rectanglesgenerate_heatmap
: Visualize data intensity across categoriesgenerate_network_graph
: Visualize relationships and connections between entitiesgenerate_radar_chart
: Compare multiple variables for multiple entitiesgenerate_bubble_chart
: Visualize 3-dimensional data (x, y, size)generate_temporal_heatmap
: Visualize data patterns over time periodsgenerate_donut_chart
: Visualize part-to-whole relationshipsHere are some examples of how to use SolanaViz MCP with Claude:
Please set my wallet address to FtG3emhAqBC8Rr9vdCqTJHxaNNuQVt7B7HvujJrQEj7Y and analyze what tokens I'm holding.
Can you tell me more about the BONK token? Is it secure to invest in?
What are the trending tokens on Solana right now? Can you show me their price performance?
Analyze my wallet and visualize my portfolio allocation as a donut chart.
What's your price prediction for SOL token in the next 24 hours?
Here are examples of what you can expect to see when using the different tools through Claude:
When you ask about a token like BONK:
The BONK token (address: DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263) has the following details:
๐ Market Data:
โข Current Price: $0.00002981
โข Market Cap: $294,152,890
โข 24h Volume: $26,843,751
โข 24h Change: +7.3%
โข All-time High: $0.00003241 (Jan 05, 2024)
๐ฐ Token Economics:
โข Total Supply: 99,508,123,523,595
โข Circulating Supply: 56,123,876,231,175
โข Holders: 842,391 addresses
โข Top 10 Holders Control: 47.2% of supply
๐ Security Analysis:
โข Rugpull Risk: Low
โข Contract Audit: Passed (Certik)
โข Liquidity Score: 9.2/10
โข Community Trust: High
โข Risk Assessment: Medium
When you ask to analyze wallet holdings:
Wallet FtG3emhAqBC8Rr9vdCqTJHxaNNuQVt7B7HvujJrQEj7Y contains the following tokens:
1. SOL
โข Amount: 12.45 SOL
โข Value: $1,431.75
โข % of Portfolio: 68.2%
2. BONK
โข Amount: 13,521,340.93 BONK
โข Value: $402.87
โข % of Portfolio: 19.2%
3. JTO
โข Amount: 38.72 JTO
โข Value: $264.15
โข % of Portfolio: 12.6%
Total Portfolio Value: $2,098.77
When requesting price history:
Price history for SOL over the last 30 days:
Date | Price (USD) | 24h Volume | Market Cap
------------|-------------|-------------|-------------
2025-03-15 | $115.32 | $1.42B | $49.73B
2025-03-08 | $109.78 | $1.27B | $47.38B
2025-03-01 | $103.65 | $1.15B | $44.73B
2025-02-22 | $114.21 | $1.33B | $49.27B
2025-02-15 | $95.83 | $0.98B | $41.35B
The token has shown an overall upward trend with a 20.3% increase over the past 30 days, despite some volatility in the middle of the period.
When asking about token security:
Security Analysis for BONK token (DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263):
โ
Contract Analysis:
โข No backdoor functions detected
โข No proxy implementation risks
โข No excessive owner privileges
โข No unusual fee mechanisms
โ๏ธ Liquidity Analysis:
โข Total Liquidity: $18.52M across 5 DEXes
โข Largest Pool: Raydium SOL/BONK with $7.82M
โข Liquidity Concentration Score: 8.4/10 (Well distributed)
๐ Ownership Structure:
โข Creator Ownership: 12% (vested over 3 years)
โข DAO Treasury: 18%
โข Community Allocation: 70%
โ ๏ธ Risk Factors:
โข Meme token volatility
โข Significant social media influence on price
โข High correlation with overall market sentiment
๐ Overall Security Score: 8.2/10 (Low Risk)
When asking to visualize portfolio allocation:
Portfolio Allocation for FtG3emhAqBC8Rr9vdCqTJHxaNNuQVt7B7HvujJrQEj7Y
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
/ SOL 68.2% \
/ โโโโโโโโโโโโโโโโ \
| โโโโโโโโโโโโโโโโ |
| โโโโโโโโโโโโโโโโ |
| BONK โโโโโโโโโโโโโโโโ JTO |
| 19.2% โโโ โโโโโโโโโโโโโโโโ โโโ |
\ โโโ โโโโโโโโโโโโโโโโ โโโ /
\ โโโ โโโ/
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
12.6%
Total Portfolio Value: $2,098.77
When asking to visualize token performance across timeframes:
Token Performance Heatmap (% Change)
| 24h | 7d | 30d | 90d |
-----------+--------+--------+--------+--------|
SOL | +3.2% | +12.5% | +20.3% | +65.7% |
BONK | +7.3% | -3.8% | +41.2% | +18.5% |
JTO | -1.5% | +5.7% | +9.2% | +32.1% |
PYTH | +2.7% | +8.2% | +15.7% | +27.5% |
RENDER | +0.5% | -2.3% | +11.3% | +42.8% |
Legend: โ >30% โ 10-30% โ 0-10% โ -10-0% โ <-10%
When visualizing token relationships:
Network Graph: Solana DeFi Token Relationships
โโโโโโโโโโ
โ SOL โ
โโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโ
โ โ โ
โโโโโโโผโโโโโโ โโโโโโโผโโโโโโ โโโโโโโผโโโโโโ
โ BONK โ โ USDC โ โ JTO โ
โโโโโโโฌโโโโโโ โโโโโโโฌโโโโโโ โโโโโโโฌโโโโโโ
โ โ โ
โโโโโผโโโโ โโโโโผโโโโ โโโโโผโโโโ
โ wBTC โ โ ETH โ โ PYTH โ
โโโโโโโโโ โโโโโโโโโ โโโโโโโโโ
Legend:
- Node size represents market cap
- Edge thickness represents liquidity between tokens
When visualizing token flows:
Sankey Diagram: Token Flow Between Major Wallets (Last 7 Days)
Exchange Wallets DeFi Protocols
โโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโ
โ โ 12,500 SOL โ โ
โ Binance โโโโโโโโโโโโโโโโโโโโโบ Marinade Finance โ
โ โ โ โ
โโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโ โ 9,300 SOL
โ โ 7,800 SOL โโโโโโโโโผโโโโโโโโโโโโโโ
โ Coinbase โโโโโโโโโโโโโโโโโโโโโโบ โ
โ โ โ Orca Pools โ
โโโโโโโโโโโโโโโโโโโโโ โ โ
โโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโ โฒ
โ โ 15,200 SOL โ
โ Kraken โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โโโโโโโโโโโโโโโโโโโโโ
Here's how to obtain the required API keys:
BirdEye API Key: Register at birdeye.so
CoinGecko API Key: Register at coingecko.com/en/api
Allora API Key: Register at allora.ai
Helius RPC URL: Register at helius.dev
The project is structured as follows:
src/
: Source code for the MCP serverindex.ts
: Main entry point for the servertools/
: Implementation of tools for various functionalitiesutils/
: Utility functions and helperstypes/
: TypeScript type definitionsbuild/
: Compiled JavaScript code (generated after running npm run build
).env
: Environment variables for API keysclaude_desktop_config.json
: Configuration for Claude DesktopIf you encounter a "Cannot find module" error in Claude Desktop, ensure that:
--input-type=module
flag is included in the args arraynpm run build
If tools fail with API errors:
.env
and claude_desktop_config.json
MIT
This project was built using:
A Model Context Protocol (MCP) server that enables Claude to access, analyze, and visualize Solana blockchain data through natural language conversations.
No releases published
No packages published
You canโt perform that action at this time.