Skip to main content
MCP server CX Codex

three.ws Portfolio — Claude Code MCP server: features and setup

Connects an agent to portfolio values, wallet balances and closed trades through MCP. It can also send tokens on Solana.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add --env THREE_WS_BASE=<THREE_WS_BASE> --env THREE_WS_TIMEOUT_MS=<THREE_WS_TIMEOUT_MS> --env THREE_WS_SESSION=<THREE_WS_SESSION> --env SOLANA_RPC_URL=<SOLANA_RPC_URL> --env SOLANA_SECRET_KEY=<SOLANA_SECRET_KEY> --transport stdio portfolio-mcp -- npx -y @three-ws/portfolio-mcp
Open on GitHub

What three.ws Portfolio does

The server reads live information from three.ws and Solana RPC. It can return portfolio value and its history, token-level positions, a public feed of closed trades with realized PnL, and on-chain balances for Solana addresses. Account data requires a three.ws session; the trade feed and balance lookup do not.

send_transfer signs and broadcasts a real SOL or SPL token transfer on Solana mainnet. Supply a key through SOLANA_SECRET_KEY or the secret parameter, and set confirm: true to execute. Transfers cannot be reversed, so verify the recipient and amount before calling the tool. Node.js >= 20 is required.

What it helps with

  • check current asset values across owned wallets
  • review portfolio value over time
  • find realized PnL for closed trades
  • look up SOL and SPL balances for an address
  • send SOL or an SPL token from a wallet

Example prompts for the agent

  • Show my current portfolio value with a breakdown by wallet.
  • Review my portfolio history for the last 30 days and find closed trades for this token.
  • Prepare a 0.1 SOL transfer to this address, verify the recipient and amount, then ask me to confirm.

How to install three.ws Portfolio

Platform CLI

claude mcp add --env THREE_WS_BASE=<THREE_WS_BASE> --env THREE_WS_TIMEOUT_MS=<THREE_WS_TIMEOUT_MS> --env THREE_WS_SESSION=<THREE_WS_SESSION> --env SOLANA_RPC_URL=<SOLANA_RPC_URL> --env SOLANA_SECRET_KEY=<SOLANA_SECRET_KEY> --transport stdio portfolio-mcp -- npx -y @three-ws/portfolio-mcp

Replace <…> with your own values. 3 more environment variables are in the server README

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about three.ws Portfolio

How do I install three.ws Portfolio in Claude Code?

Run claude mcp add portfolio-mcp -e THREE_WS_SESSION=<THREE_WS_SESSION> -e SOLANA_SECRET_KEY=<SOLANA_SECRET_KEY> -- npx -y @three-ws/portfolio-mcp. The session enables account data, while the key is used for transfers.

What does three.ws Portfolio do?

It exposes portfolio values and history, token positions, closed trades, and Solana wallet balances to an agent over MCP. It can also sign and broadcast a Solana mainnet transfer.

Which data can I access without a three.ws session?

The public closed-trade feed and on-chain balances for Solana addresses work without a session. Portfolio data tied to your account requires THREE_WS_SESSION.

Similar MCP servers

Everything for Finance and business →

From the same set43

three.ws Signals Connects AI agents to copy-trade feeds and verified on-chain publisher rankings. Useful when automating trade monitoring or mirror-trading. CX Codex +1 ★ 249repo stars three.ws Scenes Turn a text description into a 3D diorama, export a built world, or browse saved scenes. Use it when you want an AI agent to assemble a scene from a short prompt. CX Codex +1 ★ 249repo stars pump.fun Solana Data Read-only MCP server for pump.fun and Solana: token search, bonding curves, trades, holders, SNS names, 3D snapshots. No API key, RPC URL or wallet. CX Codex +1 ★ 249repo stars three.ws Provenance Logs AI assistant actions to an append-only registry with EVM signatures. Useful when verifying delegation history or auditing third-party agents. CX Codex +1 ★ 249repo stars three.ws Notifications Hands an agent the three.ws notification inbox: read events, mark them read, tune delivery channels, register Web Push devices. CX Codex +1 ★ 249repo stars three.ws Naming Resolves Solana .sol domains, looks up wallet owners, and checks whether threews.sol handles are available for your assistant. CX Codex +1 ★ 249repo stars Metaplex Agent Registry This MCP server creates an EIP-8004 identity for an agent in the Solana-based Metaplex Agent Registry. Use it to deploy an agent and inspect its registration. CX Codex +1 ★ 249repo stars three.ws Marketplace Lets an AI agent search the public three.ws catalog: agents and skills, paged and filtered. Read-only, so nothing gets published. CX Codex +1 ★ 249repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor