Solana logo

Solana

by @xgamesfun

Design, validate, simulate, review, and deploy Solana game economies from JSON through an MCP server and CLI.

Install Solana

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for @xgamesfun/solana, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

@xgamesfun/solana connects coding agents to Solana game-economy workflows defined in a JSON specification. It can check rules, simulate payouts, estimate fees, explain the economy, review payout permissions, and prepare setup transactions for shops, loot boxes, rewards, auctions, staking, and crafting. Use it when an agent needs to help design or inspect an economy before deploying it on Solana. The package also includes a CLI, JavaScript client, and self-hostable MCP HTTP handler.

Use cases

  • Design a Solana shop or loot-box economy in JSON
  • Validate payout rules before deployment
  • Simulate player costs and reward distributions
  • Review who can claim each payout
  • Prepare devnet or mainnet setup transactions

Key features

  • JSON-defined Solana economies
  • Rule checking and payout simulation
  • Fee estimation and payout review
  • Setup transaction preview and approval
  • CLI and MCP interfaces
  • Support for shops, loot boxes, auctions, staking, and crafting

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads14kPackage downloads in the last 30 days.
Last commit6d agoMost recent push to the default branch.

How Solana works

What @xgamesfun/solana does

@xgamesfun/solana helps agents and developers define Solana game economies in an xsolana.json file. Supported designs include shops, loot boxes, gacha systems, lotteries, raffles, auctions, NFT staking, crafting, contests, predictions, quests, airdrops, and player-to-player trading. Items can use SOL, project tokens, or NFTs as prices, and the specification can describe rewards and payout rules.

The shared on-chain program is called loot; projects use the same program rather than writing a separate smart contract. Each action produces a public on-chain receipt. Random outcomes use MagicBlock verifiable randomness (VRF).

How it works

An agent or developer creates an economy specification, then runs validation and analysis before setup. The check operation finds specification errors, simulate estimates payouts, and cost reports fees. explain describes the rules, while review identifies who can claim each payout.

approve first displays the setup transactions for inspection. Running it again with the confirmation code sends the reviewed transactions. The signing wallet becomes the project owner. Setup can be resumed if it stops after some transactions have already been confirmed.

The specification can select devnet or mainnet. A treasury address may be set explicitly; otherwise, sales use the signing wallet by default.

Setup and configuration

Use Node.js 22 or newer. For an MCP client that launches local processes, run:

Terminal
npx -y --package=@xgamesfun/solana@latest xsolana mcp

Claude Desktop, claude.ai, and ChatGPT can connect through https://xgames.fun/mcp. Claude Code and Codex also provide plugin installation commands through the XGamesFun/solana-kit marketplace. Cursor and Cline can use the local xsolana mcp command.

For terminal workflows, create a project key with xsolana keygen, then pass the key file to approve. Keep that file outside the repository and protect it because it controls the project. Start with devnet and test funds before using mainnet.

Tools and capabilities

  • Create and inspect JSON economy specifications.
  • Validate rules with check.
  • Estimate payouts with simulate.
  • Calculate fees with cost.
  • Explain economy behavior with explain.
  • Review payout claimers with review.
  • Preview and submit setup transactions with approve.
  • Find example specifications with the examples command.
  • Read an existing token definition from Solana with token.
  • Emit detailed or machine-readable CLI output using --verbose and --json.

Limitations and notes

The program has not been independently audited. Mainnet use involves real funds. The owner key can authorize actions for the project, so it should be backed up and secured; hardware-backed browser wallets are recommended for real funds. Collection resale royalties go to the original signing wallet, and changing the treasury later requires a separate owner transaction outside the specification.

Consumable items are not automatically delivered by the program: mark them with "kind": "normal" and have the game backend fulfill them from the purchase receipt. Player-facing integrations can use the package's JavaScript client, while the MCP interface is intended for agent workflows.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Solana

@xgamesfun/solana is an MCP server that connects AI agents to Solana game economies defined in JSON. Its main tools check specifications, simulate payouts, estimate costs, explain rules, review payout permissions, and prepare setup transactions for shops, loot boxes, rewards, auctions, staking, and crafting.

Run `npx -y --package=@xgamesfun/solana@latest xsolana mcp` from an MCP client that launches local servers. Claude Desktop and compatible web clients can instead add `https://xgames.fun/mcp` as a custom connector. Node.js 22 or newer is required.

Yes, Cursor can run the server with `npx -y --package=@xgamesfun/solana@latest xsolana mcp`. The same local MCP command is documented for Cline and other MCP clients.

Run `check`, `simulate`, `cost`, `explain`, and `review` against the JSON specification. These commands validate rules, estimate payouts and fees, describe behavior, and show who can claim payouts before `approve` is used for setup.

Yes, set the specification network to devnet and fund the project address with test SOL. Set `"network": "mainnet"` only when you are ready to use real funds, and review the setup transactions before confirming them.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSolana AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/xgamesfun-solana?style=directory)](https://allmcps.com/mcp/xgamesfun-solana)
HTML Embed
<a href="https://allmcps.com/mcp/xgamesfun-solana"><img src="https://allmcps.com/api/badge/xgamesfun-solana?style=directory" alt="Solana on AllMCPs" /></a>