💻

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

1. Get Your API Key

Sign up and copy your API key from the dashboard

Create Account →

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 balances
get_nft_holdings - NFT collection
get_token_price - Price data
get_transaction_history - Tx history
get_portfolio_value - USD value
get_swap_quote - DEX quotes
get_token_security - Security check
get_token_metadata - Token info
get_top_holders - Holder analysis
get_price_history - Price charts
get_staking_info - Staking status
get_creator_analysis - Creator check
get_liquidity_lock - Liquidity check
get_whale_activity - Whale tracking
get_social_sentiment - Social analysis
get_airdrop_check - Airdrop checker

Code 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