Skip to content

solana

A toolkit for building game economies on Solana: design, check, simulate and review shops, items, crafting, rewards, NFT staking, loot boxes and auctions as a JSON spec, with no smart contract to write. One shared program, its JS client, a CLI, and an MCP

3,055
Weekly Downloads
build.protocol_tooling.mcp#solana#solana-program#web3#nft#nft-staking#staking#loot-box#gacha#lottery#raffle

Install solana in your MCP client

solana is a Model Context Protocol server. Add it to your MCP client config once, restart, and the server's tools become available to your AI assistant. The same JSON snippet below works across all four major clients — only the config file path differs.

  1. Locate your client's MCP config file.
    • Cursor: ~/.cursor/mcp.json
    • Claude Desktop (macOS): ~/Library/Application Support/Claude/claude_desktop_config.json
    • Claude Desktop (Windows): %APPDATA%\Claude\claude_desktop_config.json
    • VS Code: Settings → Extensions → MCP
    • Windsurf: Settings → MCP Servers
  2. Add solana to the mcpServers map — paste the snippet below into your config file. If you already have other MCP servers, merge the entry into the existing mcpServers object.
  3. Restart your client so it picks up the new server.
  4. Verify — ask the assistant to list available tools; solana's tools should appear.
{
  "mcpServers": {
    "solana": {
      "command": "npx",
      "args": [
        "-y",
        "@xgamesfun/solana"
      ]
    }
  }
}

Maintain solana, or spotted a wrong detail on this page? Report a problem and we will correct it. Corrections are free.

Install solana in Cursor

Open ~/.cursor/mcp.json in your editor, paste the snippet above into mcpServers, save, and restart Cursor. solana will show up in the assistant's tool list on next launch.

Install solana in Claude Desktop (macOS)

Open ~/Library/Application Support/Claude/claude_desktop_config.json in your editor, paste the snippet above into mcpServers, save, and restart Claude Desktop (macOS). solana will show up in the assistant's tool list on next launch.

Install solana in Claude Desktop (Windows)

Open %APPDATA%\Claude\claude_desktop_config.json in your editor, paste the snippet above into mcpServers, save, and restart Claude Desktop (Windows). solana will show up in the assistant's tool list on next launch.

Install solana in VS Code

Open Settings → Extensions → MCP in your editor, paste the snippet above into mcpServers, save, and restart VS Code. solana will show up in the assistant's tool list on next launch.

npm package: @xgamesfun/solana

Transport

solana supports the following MCP transports. Most AI clients use stdio by default for locally-installed servers.

stdio

From the solana README

# xsolana: a toolkit for building game economies on Solana, with no smart contract to write **Design, check, simulate and review a game's economy on Solana: shops, items, crafting, rewards, NFT staking, loot boxes, raffles and auctions, as a JSON spec. No smart contract to write.** `xsolana` is the toolkit in this repository (`@xgamesfun/solana` on npm), and **loot** is the Solana program it drives. It is not [`@solana/kit`](https://github.com/anza-xyz/kit), the Solana JavaScript SDK. [![npm](https://img.shields.io/npm/v/@xgamesfun/solana?color=b9f26c&label=npm)](https://www.npmjs.com/package/@xgamesfun/solana) [![license](https://img.shields.io/badge/license-Apache--2.0-blue)](LICENSE) [![network](https://img.shields.io/badge/network-devnet%20%7C%20mainnet-orange)](#good-to-know) [![MC…

Other Model Context Protocol servers in the same space as solana. Each one adds different capabilities to your AI assistant — pick based on the data sources or workflows you need.

Browse the full MCP server directory or use Stork's one-line install to let your agent pick the right server automatically.