Put rich.tools in your agent
Claude, Cursor, Cline, Raycast or your own bot can score tokens, read live narratives, check your PnL and draft launches through rich.tools. The agent never gets your keys. Anything that moves SOL comes back to you to sign.
Quick start
- Open Agents & MCP, pick your app and an access preset. Copy the key: it's shown once.
- If you ticked launch, fund or trade, sign the grant message with the wallet you signed in with. You can remove it any time.
- Paste the config for your client below and restart it. Ask it: “Use rich.tools to score this token: <mint>”.
One-command setup
Run this in a terminal. It asks for your key, checks it against rich.tools, then writes the config for every client it finds (Claude Desktop, Cursor, Windsurf) and registers it with Claude Code. Existing configs are merged, with a .bak copy, and saved readable only by you.
npx -y richtools-mcp setupOnly one client: add --client cursor (or claude-desktop, windsurf, claude-code). To print a config without writing anything: npx -y richtools-mcp --print-config.
Hosted server
Nothing to install. Any client that supports remote (Streamable HTTP) MCP servers can connect to the hosted endpoint with your key in a header. Hosted mode never holds keys: wallet_create makes wallets in your browser vault, and launches always come back as sign links.
{
"mcpServers": {
"richtools": {
"url": "https://www.rich.tools/api/mcp",
"headers": {
"Authorization": "Bearer rt_live_…"
}
}
}
}Same scopes, grant, limits and credits as the local server and the REST API. x-api-key: rt_live_… works too.
Client setup
Every client runs the same package, richtools-mcp, with your key in RICHTOOLS_API_KEY. It needs Node 18 or newer.
Claude Desktop
{
"mcpServers": {
"richtools": {
"command": "npx",
"args": [
"-y",
"richtools-mcp"
],
"env": {
"RICHTOOLS_API_KEY": "rt_live_…"
}
}
}
}Claude Code
claude mcp add richtools --env RICHTOOLS_API_KEY=rt_live_… -- npx -y richtools-mcpCursor
{
"mcpServers": {
"richtools": {
"command": "npx",
"args": [
"-y",
"richtools-mcp"
],
"env": {
"RICHTOOLS_API_KEY": "rt_live_…"
}
}
}
}VS Code
{
"servers": {
"richtools": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"richtools-mcp"
],
"env": {
"RICHTOOLS_API_KEY": "rt_live_…"
}
}
}
}Windsurf
{
"mcpServers": {
"richtools": {
"command": "npx",
"args": [
"-y",
"richtools-mcp"
],
"env": {
"RICHTOOLS_API_KEY": "rt_live_…"
}
}
}
}Cline
{
"mcpServers": {
"richtools": {
"command": "npx",
"args": [
"-y",
"richtools-mcp"
],
"env": {
"RICHTOOLS_API_KEY": "rt_live_…"
},
"disabled": false,
"autoApprove": [
"account",
"token_score",
"narrative_list"
]
}
}
}Raycast
{
"mcpServers": {
"richtools": {
"command": "npx",
"args": [
"-y",
"richtools-mcp"
],
"env": {
"RICHTOOLS_API_KEY": "rt_live_…"
}
}
}
}Any client over HTTP
RICHTOOLS_API_KEY=rt_live_… npx -y richtools-mcp --httpKey controls
Each key has its own limits in Agents & MCP → Manage. Changes apply on the next call; nothing to reinstall.
- Scopes: read, audit, wallet, launch, fund, trade, export. Removing launch, fund or trade also removes the grant for it.
- Credits per day: calls past the cap fail with
rateuntil the next UTC day. - Max SOL per draft: launch and transfer drafts above it fail with
validation. - Expiry: an expired key answers
unauthorized. - IP allowlist: up to 10 IPv4/IPv6 addresses. Also enforced on the hosted server.
- Activity: the last 100 calls with tool, credits, status and whether they came over local MCP, hosted MCP or REST.
- Revoke: the key stops working on the next request.
How signing works
rich.tools never holds your main wallet's key, and neither does the agent. A write comes back in one of two forms:
- signUrl (default): a link to rich.tools/sign/… where you review the draft, see the fee line, and sign in your browser. Side buys use this, because your bundle wallets live in your browser vault.
- Unsigned transaction (
signing: "tx"): base64 transactions your own wallet signs and sends. You then report the signatures, and rich.tools checks them on-chain before it calls the launch confirmed.
Wallets an agent makes with wallet_create are keypairs on your own machine in ~/.richtools/wallets; only the address is sent. Back that folder up.
Tools
| Tool | What it does | Credits | Read-only |
|---|---|---|---|
| account | Scopes, grant, credits, limits, fee rule | free | yes |
| token_score | Buyer-side risk check of any Solana token, with sources | 1 | yes |
| audit_run / audit_status | Full audit: holder map + chain forensics | 5 | yes |
| narrative_list | Live narratives citing their signals | 1 | yes |
| pnl_read | Launch totals, fee drag, live holdings value | 1 | yes |
| launch_preview | Fee, wallets, supply estimate, guard plan | 1 | yes |
| launch_create | Drafts a launch for you to sign | 25 | no |
| launch_status / launch_list / launch_submit | Track a draft until it confirms | free | yes |
| wallet_create / wallet_list | Keypair on your machine, or wallets in your browser vault | 1 | no |
| wallet_fund | Drafts one transfer between your own wallets | 10 | no |
| trade_create | Drafts a multi-wallet buy or sell you approve | 5 | no |
| export_csv | Launches, wallets or requests as CSV | 2 | yes |
| webhook_test | Sends a signed test event | free | no |
Resources: richtools://narratives/now, richtools://launch/last, richtools://fees. Prompts: plan-launch, review-token, defend-launch.
REST API
Everything the MCP server does is plain HTTPS under https://www.rich.tools/api/v1 with Authorization: Bearer rt_live_….
| Method | Path | Scope | Returns |
|---|---|---|---|
| GET | /me | read | key, scopes, grant, credits, fees, prices |
| GET | /token/:chain/:mint | read | score, holders, clusters, flags, sources |
| GET | /audit/:chain/:mint | audit | audit id and first result |
| GET | /audit/id/:id | read | progress; Accept: text/event-stream streams it |
| GET | /narratives?chain=&window= | read | ranked narratives with signal refs |
| GET | /pnl?range= | read | launches, deployed, fee drag, unrealised |
| POST | /launch/preview | read | fee, wallets needed, supply, guard plan, warnings |
| POST | /launch/create | launch | signUrl, or unsigned transactions |
| GET | /launch | read | recent launch drafts |
| GET | /launch/:id | read | state, signature, mint |
| POST | /launch/:id/submit | launch | report signatures (signing: tx) |
| POST | /wallet/create | wallet | register an address, or a signUrl |
| GET | /wallet/list | read | public addresses |
| POST | /wallet/fund | fund | signUrl, or one unsigned transfer |
| GET | /wallet/fund/:id | read | state, signature |
| POST | /trade | trade | signUrl for a multi-wallet buy or sell |
| GET | /trade/:id | read | state, each wallet's result |
| GET | /export.csv?what= | export | launches | wallets | requests |
| POST | /webhooks/test | read | sends webhook.test |
curl -s https://www.rich.tools/api/v1/token/solana/<mint> \
-H "Authorization: Bearer rt_live_…"
curl -s -X POST https://www.rich.tools/api/v1/launch/create \
-H "Authorization: Bearer rt_live_…" -H "content-type: application/json" \
-d '{"name":"Example","symbol":"EXMPL","imageUrl":"https://…/logo.png","devBuySol":0.5,"signing":"url"}'Errors always look like { "error": { "code", "message", "retryAfter"? } }. Codes: unauthorized (401), scope (403), validation (400), insufficient_credits (402, with topUpUrl), not_found (404), conflict (409), rate (429, with Retry-After), upstream (502). Failed calls are refunded.
Webhooks
Set a webhook URL on a key in Agents & API. rich.tools POSTs launch.confirmed, launch.failed, audit.completed, funding.settled and trade.settled with headers X-RT-Signature: sha256=…, X-RT-Timestamp, X-RT-Event and X-RT-Delivery. Anything but a 2xx is retried 5 times (30 s, 2 m, 10 m, 1 h, 6 h). Reject timestamps older than 5 minutes.
import { createHmac, timingSafeEqual } from "node:crypto";
// raw = the exact request body string, before JSON.parse
export function fromRichTools(raw: string, headers: Headers, secret: string) {
const ts = headers.get("x-rt-timestamp") ?? "";
const sig = headers.get("x-rt-signature") ?? "";
if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false; // replay window: 5 minutes
const want = "sha256=" + createHmac("sha256", secret).update(`${ts}.${raw}`).digest("hex");
return want.length === sig.length && timingSafeEqual(Buffer.from(want), Buffer.from(sig));
}Credits and limits
One credit is $0.15. Reads cost 1, audits 5, launch drafts 25, transfers 10, trade drafts 5, exports 2; status checks are free. Credits come from the same balance as Tekk and are bought in SOL. Each key has a daily credit cap you set, plus 60 reads and 10 writes a minute on Rich Pro.
API keys and MCP need Rich Pro or above. Rich Pro: 500 API credits a day across all keys, 3 keys. Whale: 1,500 and 5 keys, 120 reads and 20 writes a minute. Inner Circle: 5,000 and 10 keys, 240 reads and 40 writes a minute. If the membership lapses, calls answer plan (HTTP 402) with an upgrade link until it is renewed.
Launches made through an agent pay the same platform fee as anywhere else on rich.tools: 0.4% of the SOL deployed plus 0.02 SOL per wallet, shown on the sign page before you sign.
What agents can't do
- Sign anything. Every transaction needs your wallet.
- Use wallets that aren't yours. Side buys and transfers only go between wallets on your own account, and they show as yours on-chain.
- Hide funding, route through third parties, or buy and sell wallets.
- Invent numbers. A metric the source didn't return comes back as unknown, with its source named.