solanaprox-mcp

solanaprox-mcp

Description: Pay-per-request access to Claude and GPT models via Solana USDC using a Phantom wallet address. No accounts, no API keys — wallet-native authentication.

Category
Visit Server

README

SolanaProx MCP Server

Pay for AI inference with Solana. No API keys. Your wallet is your identity.

npm version License: MIT

Connect Claude Desktop, Cursor, or any MCP-compatible AI tool to SolanaProx — pay per request using USDC or SOL directly from your Phantom wallet.


What is SolanaProx?

SolanaProx is an AI API gateway where your Phantom wallet is your account. Deposit USDC or SOL, make AI requests, pay per use. No signups. No subscriptions. No API key management.

Your Phantom Wallet → SolanaProx → Claude / GPT-4
       ↑                                    ↓
   USDC balance                        AI response

Quick Start

1. Install the MCP server

npx solanaprox-mcp

2. Add to Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "solanaprox": {
      "command": "npx",
      "args": ["solanaprox-mcp"],
      "env": {
        "SOLANA_WALLET": "YOUR_PHANTOM_WALLET_ADDRESS"
      }
    }
  }
}

3. Add to Cursor

Edit ~/.cursor/mcp.json:

{
  "mcpServers": {
    "solanaprox": {
      "command": "npx",
      "args": ["solanaprox-mcp"],
      "env": {
        "SOLANA_WALLET": "YOUR_PHANTOM_WALLET_ADDRESS"
      }
    }
  }
}

4. Deposit USDC

Visit solanaprox.com, connect your Phantom wallet, and deposit USDC or SOL.

That's it. Claude can now make AI requests that pay automatically from your balance.


Tools

ask_ai

Send a prompt to Claude or GPT-4. Cost deducted automatically from wallet balance.

Input:
  prompt      (required) — your question or task
  model       (optional) — claude-sonnet-4-20250514 (default) | gpt-4-turbo
  max_tokens  (optional) — 1-4096, default 1024
  system      (optional) — system prompt for context

check_balance

Check your current USDC/SOL balance on SolanaProx.

Input:
  wallet  (optional) — defaults to configured SOLANA_WALLET

estimate_cost

Estimate request cost before making it.

Input:
  prompt      (required)
  model       (optional)
  max_tokens  (optional)

list_models

List all available models and pricing.


Pricing

Model Input Output
Claude Sonnet 4 $3.60/1M tokens $18.00/1M tokens
GPT-4 Turbo $12.00/1M tokens $36.00/1M tokens

Cached responses receive a 50% discount.

Typical request costs:

  • Short question/answer: ~$0.001–0.003
  • Code review (500 lines): ~$0.01–0.03
  • Long document analysis: ~$0.05–0.15

Use Cases

Personal AI assistant with micropayments

Pay only for what you use. No $20/month subscription burning while you sleep.

Autonomous AI agents

AI agents that pay for their own inference — no hardcoded API keys, no human in the loop.

// Agent pays autonomously on every request
const res = await fetch("https://solanaprox.com/v1/messages", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "X-Wallet-Address": process.env.SOLANA_WALLET,
  },
  body: JSON.stringify({
    model: "claude-sonnet-4-20250514",
    max_tokens: 1024,
    messages: [{ role: "user", content: prompt }],
  }),
});

Solana app integration

Let your app's users pay for AI features directly from their Phantom wallet. No backend payment processing required.


Environment Variables

Variable Required Description
SOLANA_WALLET Your Phantom wallet address
SOLANAPROX_URL Override API URL (default: https://solanaprox.com)

Standalone Agent Example

git clone https://github.com/solanaprox/mcp-server
cd mcp-server
npm install

# Run the research agent
SOLANA_WALLET=your_wallet node agent-example.js research "Solana DeFi trends 2026"

# Check balance
SOLANA_WALLET=your_wallet node agent-example.js balance

# Quick demo
SOLANA_WALLET=your_wallet node agent-example.js

Integration Examples

LangChain (Python)

Coming soon — or use the REST API directly.

Direct REST API

# Check balance
curl https://solanaprox.com/api/balance/YOUR_WALLET

# Make AI request
curl -X POST https://solanaprox.com/v1/messages \
  -H "Content-Type: application/json" \
  -H "X-Wallet-Address: YOUR_WALLET" \
  -d '{
    "model": "claude-sonnet-4-20250514",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Security

  • Your wallet address is used as an identifier — it's public by design on Solana
  • Private keys never leave your wallet
  • SolanaProx only reads incoming transactions to your deposit address
  • Rate limiting and spend limits protect against runaway costs
  • All transactions verifiable on Solscan

Links


Built by LPX Digital Group LLC

Part of the LPX ecosystem:


MIT License

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured