💻
Build with Solana MCP API
REST API with 16 tools for DeFi apps, wallet managers, and portfolio trackers
Key Features
- ✓REST API: Standard HTTP endpoints with JSON responses
- ✓16 Tools: Wallets, NFTs, prices, security, staking, and more
- ✓Multi-Wallet: Create, manage, fund wallets programmatically
- ✓Webhooks: Monitor transactions and balance changes
- ✓SDK Ready: Works with any programming language
Quick Start
2. Test the API
curl -X POST https://solanamcp.dev/api/tools/get_sol_balance \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"wallet": "7xKXXL8BkVZyZbWiSBP7pUkLBrVpHjZ9qKwq5cqQE7MD"}'3. List All Tools
curl https://solanamcp.dev/api/tools/list
All Available Tools
get_sol_balance - Token balancesget_nft_holdings - NFT collectionget_token_price - Price dataget_transaction_history - Tx historyget_portfolio_value - USD valueget_swap_quote - DEX quotesget_token_security - Security checkget_token_metadata - Token infoget_top_holders - Holder analysisget_price_history - Price chartsget_staking_info - Staking statusget_creator_analysis - Creator checkget_liquidity_lock - Liquidity checkget_whale_activity - Whale trackingget_social_sentiment - Social analysisget_airdrop_check - Airdrop checkerCode Examples
JavaScript/TypeScript
const API_KEY = 'your_api_key';
const API_URL = 'https://solanamcp.dev/api';
async function getBalance(wallet) {
const response = await fetch(`${API_URL}/api/tools/get_sol_balance`, {
method: 'POST',
headers: {
'x-api-key': API_KEY,
'Content-Type': 'application/json'
},
body: JSON.stringify({ wallet })
});
const data = await response.json();
return data.data;
}
// Usage
const balance = await getBalance('7xKXX...');
console.log(`SOL: ${balance.sol}`);
console.log(`Tokens: ${balance.tokens.length}`);Python
import requests
API_KEY = 'your_api_key'
API_URL = 'https://solanamcp.dev/api'
def get_balance(wallet):
response = requests.post(
f'{API_URL}/api/tools/get_sol_balance',
headers={'x-api-key': API_KEY},
json={'wallet': wallet}
)
return response.json()['data']
# Usage
balance = get_balance('7xKXX...')
print(f'SOL: {balance["sol"]}')Perfect For
DeFi Apps
Wallet integration, swap quotes, yield data
Portfolio Trackers
Real-time balances across multiple wallets
Wallet Managers
Create, fund, and manage Solana wallets
Trading Bots
Price monitoring, whale tracking, automation