MCP Streamable HTTP Solana

Portfolio intelligence
for AI agents.

Two MCP tools. Markowitz mean-variance optimization across the live Solana meme token universe. Real wallet metrics on demand. Connect once, query always.

POST
https://mcp.chainaware.ai/mcp
FastMCP Stateless HTTP Claude Desktop Claude Code Any MCP Client

MCP Tools

Two tools. All the signal you need.

Each call proxies directly to the ChainAware Portfolio API. All optimization, price fetching, and Solana RPC work happens server-side.

create_markowitz_portfolio
Builds a mean-variance optimal portfolio from the live Solana meme token universe. Returns per-token weights and full portfolio risk metrics.
number_of_tokens int · default 10 · range 2–50
// response
{
  "portfolio": [
    {
      "symbol":            "BONK",
      "chain":             "SOLANA",
      "weight":            15.4,
      "annual_return":     320.5,
      "annual_volatility":  210.3,
      "sharpe_ratio":      1.52,
      "sortino_ratio":     2.10
    }
  ],
  "portfolio_metrics": {
    "total_tokens":       10,
    "annual_return":      280.0,
    "sharpe_ratio":       1.47,
    "total_weight":       100.0
  }
}
get_portfolio
Fetches live token balances, prices, and Markowitz risk metrics for any Solana wallet. Returns per-token breakdown with portfolio-level aggregates.
wallet str · Solana public key · base58 · 32–44 chars
// response
{
  "token_metrics": [
    {
      "symbol":       "BONK",
      "balance":      1500000,
      "price":        0.000021,
      "value":        31.5,
      "metrics": {
        "weight":        12.3,
        "sharpe_ratio":  1.51,
        "sortino_ratio": 2.05
      }
    }
  ],
  "portfolio_metrics": {
    "annual_return":   275.0,
    "sharpe_ratio":    1.46
  }
}

Sample Output

Every call returns full risk metrics.

BONK SOLANA · Markowitz optimal portfolio
Weight
15.4%
of total allocation
Annual Return
320%
backtested
Volatility
210%
annualised std dev
Sharpe Ratio
1.52
risk-adjusted return
Sortino Ratio
2.10
downside-adjusted
Total Tokens
10
configurable 2–50

Integration

Connect in seconds.

One JSON block in your MCP client config. No auth setup, no SDKs, no session state to manage.

Claude Desktop

Add the server under mcpServers in your Claude Desktop config file, then restart the app.

  • macOS — ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows — %APPDATA%\Claude\claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "meme-portfolio": {
      "type": "streamable-http",
      "url":  "https://mcp.chainaware.ai/mcp"
    }
  }
}

Claude Code

Register the server via the CLI. The tools are available in the next session — no restart needed.

terminal
# register the MCP server
claude mcp add meme-portfolio \
  --transport streamable-http \
  https://mcp.chainaware.ai/mcp

From the Blog

Learn the strategy behind the tools.

Guides on portfolio theory, risk management, and Solana memecoin selection — the concepts this API puts to work.

Guide Build a Memecoin Portfolio — Beginner's Guide Read → Theory Markowitz Portfolio Optimization for Memecoins Read → Selection Best Memecoins to Hold in 2026 — Data-Driven Solana Guide Read → Risk Memecoin Risk Management in 2026 Read → Rebalancing Memecoin Portfolio Rebalancing Guide Read → Tracking Memecoin Portfolio Tracking Guide Read →