AIWRLD MCP
Officialby aiwrldxyz
README.md
# AIWRLD MCP
The official [Model Context Protocol](https://modelcontextprotocol.io) server for [AIWRLD](https://aiwrld.xyz) ($AIWRLD), the multi-chain memecoin launchpad and trading terminal.
It lets an AI agent app **read the whole platform** and **prepare actions on it safely**:
- **Read everything**: coins on Solana and every live EVM chain, and the external coins trending on those chains; the board by stage and chain; Trending across chains; a full coin report with price, market cap, volume, holders, graduation, launch type, fee routing and holder risk; candles, trades, top holders and traders, chart events; the $AIWRLD buy back and burn; the Feed and its fee board; a one-call wallet overview and wallet analytics; read-only perps markets; platform status.
- **Do the maths**: live quotes, the anti-sniper fee line, fee splits per venue and tier, and bonding-curve previews.
- **Prepare, don't spend**: `prepare_buy`, `prepare_sell` and `prepare_launch` return the transaction for **your own wallet** to sign, a plain-language summary and a link to finish on aiwrld.xyz. Nothing is signed or sent.
- **Sign locally, only if you opt in**: with `AIWRLD_ALLOW_SIGNING=1` (or `--allow-signing`) the server can sign prepared Solana actions with your local keystore wallet, inside SOL caps you set, and only after you confirm each one.
```bash
npx -y @aiwrld/mcp
```
Node 20 or newer. No account and no API key needed. The server is **read-only and prepare-only by default**.
> [!WARNING]
> Coins on the platform are created by anyone, and you can lose everything you put in. The EVM contracts are not audited. Nothing this server says is financial advice or a promise of any return: every prepared trade is your own decision.
## Contents
[Set up your agent app](#set-up-your-agent-app) · [Install](#install) · [Tools](#tools) · [Resources](#resources) · [Prompts](#prompts) · [Safety model](#safety-model) · [Configuration](#configuration) · [Questions to ask](#questions-to-ask) · [Library use](#library-use) · [Development](#development)
## Set up your agent app
Ready-to-paste setup for six apps. Each folder has a README and the config file in that app's own format, for the stdio server (`npx -y @aiwrld/mcp`) and for the HTTP transport.
| App | Config file | Setup |
| --- | --- | --- |
| Claude Code | `claude mcp add`, or `.mcp.json` in your project | [clients/claude-code](clients/claude-code) |
| Claude Desktop | `claude_desktop_config.json` | [clients/claude-desktop](clients/claude-desktop) |
| Cursor | `.cursor/mcp.json` (project) or `~/.cursor/mcp.json` | [clients/cursor](clients/cursor) |
| Codex | `~/.codex/config.toml`, `[mcp_servers.aiwrld]` | [clients/codex](clients/codex) |
| Windsurf | `~/.codeium/windsurf/mcp_config.json` | [clients/windsurf](clients/windsurf) |
| Gemini CLI | `~/.gemini/settings.json`, `mcpServers` | [clients/gemini-cli](clients/gemini-cli) |
Every setup uses the same server name, `aiwrld`, and the same environment variables:
| Variable | Default | What it does |
| --- | --- | --- |
| `AIWRLD_API_URL` | `https://aiwrld.xyz/api` | The API the server reads from and prepares through |
| `AIWRLD_READ_ONLY` | off | `1` never signs, whatever else is set. The shipped configs set it |
| `AIWRLD_ALLOW_SIGNING` | off | `1` opts in to local signing (see [Safety model](#safety-model)) |
| `AIWRLD_WALLET` | config.json's `wallet` | The keystore wallet to sign with |
| `AIWRLD_KEYSTORE_PASSPHRASE` | prompt on the terminal | The keystore wallet's passphrase, when signing is on |
| `AIWRLD_CONFIG_DIR` | `~/.config/aiwrld` | Where `config.json` and `keystore.json` live |
| `AIWRLD_MCP_LOG_LEVEL` | `info` | Log level on stderr |
| `AIWRLD_MCP_TOKEN` | none | Bearer token for the HTTP transport |
Any other MCP client takes the usual shape:
```json
{
"mcpServers": {
"aiwrld": {
"command": "npx",
"args": ["-y", "@aiwrld/mcp"],
"env": { "AIWRLD_API_URL": "https://aiwrld.xyz/api", "AIWRLD_READ_ONLY": "1" }
}
}
}
```
## Install
Most apps start the server for you with `npx`, so there's nothing to install. To pin it instead:
```bash
npm install -g @aiwrld/mcp
aiwrld-mcp --help
```
| Command | What it does |
| --- | --- |
| `aiwrld-mcp` | stdio transport, prepare-only. What MCP clients launch |
| `aiwrld-mcp --http --port 8765` | Streamable HTTP on `http://127.0.0.1:8765/mcp` |
| `aiwrld-mcp --http --host 0.0.0.0 --auth-token <token>` | HTTP beyond loopback. A bearer token is required |
| `aiwrld-mcp --allow-signing` | Turns on local signing. See [Safety model](#safety-model) |
Debug with the MCP Inspector:
```bash
npx @modelcontextprotocol/inspector npx -y @aiwrld/mcp
```
## Tools
30 tools: 29 by default, plus `sign_and_send` when signing is on. Every tool has a validated input schema, an output schema with structured content (mirrored as JSON text for clients that only read text), and annotations. Amounts go in as whole units (`"0.1"` SOL, `"25000"` tokens) and come back both raw and formatted. Failures come back as tool errors with a stable `code` and whether retrying could help.
### Market
| Tool | What it returns |
| --- | --- |
| `search_coins` | Coins launched here, by name, ticker (`$` optional) or address prefix, across every live chain |
| `get_board` | The board by stage (new, graduating, graduated) and chain, sorted and filtered like the Coins page, with paging and counts. The All list mixes in external trending coins, marked `onPlatform: false` |
| `get_trending` | Trending across chains, as the site shows it: coins launched here and external coins trending on Solana and the other live chains. Filter by chain or by source |
| `get_coin_report` | One coin, any chain: price, market cap, liquidity, volume, holders, graduation progress, venue and pair, tax and anti-sniper state, launch type and where creator fees go, holder risk, buy-backs, holder rewards and multi-chain siblings. External coins get market figures, risk and their page |
| `get_candles` | OHLC candles from 1m to 1D |
| `get_trades` | Trades, newest first, with anti-sniper and first-buy flags, paged with `cursor` |
| `get_holders` | Top holders with the pool, escrow, creator, locks, snipers and burns labelled |
| `get_top_traders` | Traders ranked by PnL |
| `get_chart_events` | The chart's bubbles: launcher trades, burns, graduation, marketing steps, claims, Feed callouts, posts on X |
### Platform
| Tool | What it returns |
| --- | --- |
| `get_aiwrld_burns` | The $AIWRLD buy back and burn: supply and share burned, the fees behind it, recent burns with transactions, the next run, the coins that fund it most |
| `get_feed` | The Feed: launches, graduations, burns, claims and posts |
| `get_fee_board` | Creator fees paid out over 7 or 30 days by launch type, chain and coin |
| `get_platform_status` | Site state, every system's status and uptime, open incidents, open and coming-soon chains, indexer lag |
| `get_platform_stats` | Platform totals: launches, graduations, volume, holder rewards, launch-type and pair mix |
| `get_launch_options` | What a launch can pick right now: venues, tax tiers and who gets what, launch types, open and coming-soon chains |
| `list_chains` | Every live and coming-soon chain. Coming-soon chains are refused as inputs |
### Wallets
| Tool | What it returns |
| --- | --- |
| `get_wallet_overview` | One Solana wallet in one call: SOL, holdings by value, coins it launched with unclaimed fees, and its hidden EVM wallet on every EVM chain. Parts that can't be read are listed, not shown as empty |
| `get_wallet_analytics` | A Solana wallet's profile, PnL by period, positions, trades, rewards, portfolio, and its hidden EVM wallet |
### Perps (read-only)
| Tool | What it returns |
| --- | --- |
| `get_perps_markets` | Hyperliquid, Aster and Jupiter Perps markets grouped by coin: price, 24 h change and volume, open interest, max leverage |
| `get_perps_candles` | Candles for one market |
There is no perps trading here: no orders, no accounts, nothing to sign.
### Quotes and maths
| Tool | What it returns |
| --- | --- |
| `quote_trade` | A live quote from the coin's pool: amount out, minimum after slippage, the fee charged right now, price impact, route |
| `calc_sniper_fee` | The anti-sniper fee for a tier and second, or for a coin right now, with the whole 15-second line |
| `calc_fee_split` | How a trade's fee splits between the coin, the platform and the venue, per venue and tier |
| `calc_curve_quote` | An offline constant-product bonding-curve preview |
### Actions (prepare-only by default)
| Tool | What it returns |
| --- | --- |
| `prepare_buy` | A buy for your wallet to sign: on the coin's curve or pool, through Jupiter for other Solana tokens, or through the chain's router on EVM. Refused while the anti-sniper fee is above `maxFeeBps` |
| `prepare_sell` | A sell by amount or by percentage of the wallet's balance |
| `prepare_launch` | A coin launch on Solana (built by the API) or an EVM chain (built against the chain's launch contract) |
| `get_signing_status` | Whether this server can sign, with which wallet, the caps and what was spent in the last 24 hours |
| `get_transaction_status` | Whether a Solana transaction is pending, confirmed or failed |
| `sign_and_send` | **Only when signing is on.** Signs a prepared Solana action with your keystore wallet and sends it, after the checks below and your confirmation |
Every `prepare_*` result has the same shape: `summary`, `details`, `format` (`solana-base64` or `evm-unsigned`), `transactions` in order, `finishOnSite`, `nextSteps`, `warnings`, a `disclaimer`, and a `preparedId` when local signing is on for that wallet. Solana transactions lapse about a minute after they're prepared; EVM swaps carry a deadline.
| Tools | `readOnlyHint` | `destructiveHint` | `idempotentHint` | `openWorldHint` |
| --- | --- | --- | --- | --- |
| Reads (market, platform, wallets, perps) | true | false | true | true |
| `list_chains`, `get_signing_status` | true | false | true | false |
| `quote_trade`, `get_transaction_status` (live answers) | true | false | false | true |
| `calc_fee_split`, `calc_curve_quote` (pure maths) | true | false | true | false |
| `calc_sniper_fee` (may read a coin) | true | false | true | true |
| `prepare_*` | false | false | false | true |
| `sign_and_send` | false | **true** | false | true |
## Resources
5 resources: 2 templates and 3 fixed URIs.
| URI | What it is |
| --- | --- |
| `aiwrld://coin/{address}` | A coin's full report, as JSON. **Subscribable**: Solana coins update from the platform's live stream, EVM coins by polling their trades |
| `aiwrld://docs/{page}` | Short summaries of the platform docs, one per topic. Start with `aiwrld://docs/index` |
| `aiwrld://feed` | The newest 20 Feed items. **Subscribable**: told when a new item lands on top |
| `aiwrld://trending` | Trending across chains, as `get_trending` returns it. **Subscribable**: told when the top 20 change |
| `aiwrld://chains` | The chain registry |
Docs pages (23): `index`, `whats-new`, `getting-started`, `launching`, `venues`, `curve-and-graduation`, `fees`, `launch-types`, `anti-sniper`, `marketing`, `multi-chain`, `evm-chains`, `trading`, `external-tokens`, `token-page`, `social-vaults`, `feed`, `cto`, `perps`, `safety`, `addresses`, `faq`, `glossary`.
A subscriber gets `notifications/resources/updated` when the resource changes, at most once every two seconds per resource, and reads it again when it wants the new state. One session can watch up to 50 resources at once. Template and prompt arguments support completion.
## Prompts
7 prompts.
| Prompt | Arguments | What it does |
| --- | --- | --- |
| `analyze_coin` | `coin`, `chain?` | Market, graduation, launch type and fee routing, holder risk and the last day of activity |
| `compare_coins` | `first`, `second` | Two coins side by side in one table |
| `explain_launch_type` | `type` | What a launch type does with creator fees, with the docs attached and a worked example |
| `daily_burn_report` | none | The last day of the $AIWRLD buy back and burn |
| `review_wallet` | `address` | What a wallet holds now, then its PnL, positions, rewards and trading style |
| `trending_now` | `chain?` | What's trending, launched here and elsewhere, with the facts behind the top coins |
| `plan_launch` | `idea`, `chain?` | Walks through every launch choice, then prepares the launch for you to sign |
Every prompt asks for facts with their numbers and links, and no predictions, promises or buy and sell calls.
## Safety model
**By default the server holds no key and can't move money.** It reads public data and builds transactions. You sign them, in your own wallet, if you choose to.
**Prepare-only (the default).**
- Solana transactions are built by the platform's API, the way the site builds them. Every one is decoded and **checked to be paid by the wallet it was built for** before it's returned; anything else is refused.
- EVM transactions are built here, against the chain's contracts, with the quote read from the chain at that moment, slippage applied, a deadline and any ERC-20 approval listed first.
- Trades inside a coin's anti-sniper window are refused above `maxFeeBps`, 10% by default.
- Every result says plainly that nothing has been sent, and carries a disclaimer.
**Local signing (explicit opt-in).** Set `AIWRLD_ALLOW_SIGNING=1`, pass `--allow-signing`, or set `"mcp": { "allowSigning": true }` in `config.json`. The server then unlocks one Solana wallet from the shared keystore and offers one extra tool, `sign_and_send`. Before anything is signed:
1. The prepared action must exist, be unexpired and unused, and have been prepared **for the signing wallet**. Each can be used once.
2. Every transaction in it must be **paid by that wallet**.
3. A trade's quoted fee must be within the `maxFeeBps` you accepted.
4. Its SOL spend must be within **`mcp.maxSolPerTx`**, and within **`mcp.maxSolPerDay`** over a rolling 24 hours, recorded in a locked ledger that survives restarts. Defaults: 0.25 SOL per transaction and 1 SOL per day.
5. **You confirm each action in the client** through an MCP elicitation form. With `AIWRLD_REQUIRE_CONFIRMATION=1` (or `--require-elicitation`) a client that can't show the form is refused outright; otherwise the client's own tool approval is relied on (`sign_and_send` is annotated as destructive).
Only Solana actions are signed; EVM transactions are always returned unsigned. Signing is refused while the HTTP server is bound beyond loopback. `AIWRLD_READ_ONLY=1` or `--read-only` turns signing off whatever else is set. Staking is coming soon and isn't part of this server.
The full model, with the passphrase handling and transport rules, is in [docs/safety.md](docs/safety.md).
## Configuration
The server reads `config.json` and `keystore.json` from the shared config directory: `$XDG_CONFIG_HOME/aiwrld` (when absolute), else `~/.config/aiwrld`, and `%APPDATA%\aiwrld` on Windows. Every flag, file field and environment variable is in [docs/configuration.md](docs/configuration.md).
## Questions to ask
- "What's on the AIWRLD board right now? Show the 10 busiest graduating coins on Solana."
- "Give me a full report on `EWmfdf4YPREJufPnxydUeYQMLiHW7NwX3EFd2xE5nSrP`, including holder risk."
- "Compare these two coins side by side: `<address>` and `<address>`."
- "How much $AIWRLD has been burned, and when's the next buy-back?"
- "Explain the Diamond Hands launch type, with an example on a 2.25% Meteora coin."
- "What would a buy pay 4 seconds after a 1.25% EVM launch?"
- "What's trending across chains right now, and which of those coins launched here?"
- "What do I hold right now, on Solana and in my EVM wallet?"
- "Which perps venues list BTC, and what's the open interest on each?"
- "Quote 0.25 SOL of this coin, then prepare the buy for my wallet."
- "Help me plan a launch for a coin called Night Owl, $OWL, on Base."
## Library use
The server is also a library, for embedding in your own process or transport:
```ts
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { AiwrldContext, createAiwrldServer, loadConfig } from "@aiwrld/mcp";
const { config, dir } = await loadConfig();
const ctx = new AiwrldContext({ config, configDir: dir });
const { server } = createAiwrldServer(ctx);
await server.connect(new StdioServerTransport());
```
It's built on the AIWRLD SDK: `@aiwrld/data` for reads and `@aiwrld/launch` for building trades and launches. See [docs/library.md](docs/library.md).
## Development
```bash
npm install
npm run typecheck
npm test # in-memory MCP sessions over a fake API: no network, no keys
npm run build
```
See [CONTRIBUTING.md](CONTRIBUTING.md), [docs/development.md](docs/development.md) and the [CHANGELOG](CHANGELOG.md). Security reports: [SECURITY.md](SECURITY.md).
## Links
[Website](https://aiwrld.xyz) · [Contracts](https://github.com/aiwrldxyz/Contracts) · [Status](https://aiwrld.xyz/status)
AIWRLD is not affiliated with Pump.fun, Raydium, Meteora, Jupiter, Relay, Hyperliquid, Aster, Robinhood, BNB Chain, Base, Circle or Solana Foundation, nor with the makers of the AI apps named above.
MIT License.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues