autonomo-mcp 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +91 -91
- package/index.mjs +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
# Autonomo MCP server
|
|
2
|
-
|
|
3
|
-
Give Claude, Codex, Cursor or any MCP client access to Autonomo's paid APIs. The agent finds an API, checks the
|
|
4
|
-
price and pays per call with x402, in USDG or $AUTONOMO on Robinhood Chain. No API keys and no account: just a wallet.
|
|
5
|
-
|
|
6
|
-
The server runs on your own computer. Your wallet key stays there and is only used to sign payments.
|
|
7
|
-
|
|
8
|
-
## Tools
|
|
9
|
-
|
|
10
|
-
| Tool | What it does | Costs |
|
|
11
|
-
| --- | --- | --- |
|
|
12
|
-
| `find_apis` | Search Autonomo's APIs (token prices, launches, rug risk, wallets, transactions, page reader). Optionally also the directory of 3.7K x402 projects. | Free |
|
|
13
|
-
| `get_price` | Call an API without paying and show its price. | Free |
|
|
14
|
-
| `call_api` | Pay for one call and return the answer, with the payment link on Blockscout. | Usually 0.01 USDG or 100 $AUTONOMO |
|
|
15
|
-
|
|
16
|
-
## Setup
|
|
17
|
-
|
|
18
|
-
1. Make a **new wallet just for your agent**, and send it a little USDG (1 USDG is 100 calls) or $AUTONOMO on
|
|
19
|
-
Robinhood Chain. Paying in $AUTONOMO needs a little ETH once, for the Permit2 approval.
|
|
20
|
-
2. Add the server to your client (below), with that wallet's private key as `AUTONOMO_WALLET_KEY`.
|
|
21
|
-
3. Ask: "Is token 0x… safe? Use Autonomo."
|
|
22
|
-
|
|
23
|
-
Without a key, `find_apis` and `get_price` still work.
|
|
24
|
-
|
|
25
|
-
### Claude Code
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
claude mcp add autonomo -e AUTONOMO_WALLET_KEY=0xYOUR_AGENT_WALLET_KEY -- npx -y autonomo-mcp
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
On Windows, start `npx` through `cmd /c`. In PowerShell, quote the `--`:
|
|
32
|
-
|
|
33
|
-
```powershell
|
|
34
|
-
claude mcp add autonomo -e AUTONOMO_WALLET_KEY=0xYOUR_AGENT_WALLET_KEY '--' cmd /c npx -y autonomo-mcp
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
### Claude Desktop, Cursor and others
|
|
38
|
-
|
|
39
|
-
Add this to the client's MCP config (`claude_desktop_config.json`, `.cursor/mcp.json`, …):
|
|
40
|
-
|
|
41
|
-
```json
|
|
42
|
-
{
|
|
43
|
-
"mcpServers": {
|
|
44
|
-
"autonomo": {
|
|
45
|
-
"command": "npx",
|
|
46
|
-
"args": ["-y", "autonomo-mcp"],
|
|
47
|
-
"env": { "AUTONOMO_WALLET_KEY": "0xYOUR_AGENT_WALLET_KEY" }
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
If the client can't find `npx` on Windows, use `"command": "cmd"` and `"args": ["/c", "npx", "-y", "autonomo-mcp"]`.
|
|
54
|
-
|
|
55
|
-
### Codex
|
|
56
|
-
|
|
57
|
-
In `~/.codex/config.toml`:
|
|
58
|
-
|
|
59
|
-
```toml
|
|
60
|
-
[mcp_servers.autonomo]
|
|
61
|
-
command = "npx"
|
|
62
|
-
args = ["-y", "autonomo-mcp"]
|
|
63
|
-
env = { AUTONOMO_WALLET_KEY = "0xYOUR_AGENT_WALLET_KEY" }
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
## Settings
|
|
67
|
-
|
|
68
|
-
| Env var | Default | Meaning |
|
|
69
|
-
| --- | --- | --- |
|
|
70
|
-
| `AUTONOMO_WALLET_KEY` | none | Private key of the agent's wallet. Needed only for `call_api`. |
|
|
71
|
-
| `AUTONOMO_PAY_WITH` | `usdg` | `usdg` or `autonomo`, the token used when the agent doesn't say. |
|
|
72
|
-
| `AUTONOMO_DAILY_USDG` | `1` | Most USDG the server will spend per UTC day. |
|
|
73
|
-
| `AUTONOMO_DAILY_AUTONOMO` | `10000` | Most $AUTONOMO the server will spend per UTC day. |
|
|
74
|
-
| `AUTONOMO_BASE_URL` | `https://autonomo.fun` | Only for testing against a local copy of the site. |
|
|
75
|
-
|
|
76
|
-
## Safety
|
|
77
|
-
|
|
78
|
-
- It only pays Autonomo gateways (`autonomo.fun/x/...`), and only in USDG or $AUTONOMO on Robinhood Chain.
|
|
79
|
-
- Each call is capped at 0.05 USDG or 5,000 $AUTONOMO, whatever the API asks.
|
|
80
|
-
- The daily budget is tracked in `~/.autonomo-mcp/spend.json`.
|
|
81
|
-
- Your MCP client asks before each tool call, so you approve every payment unless you choose to allow it always.
|
|
82
|
-
- Use a dedicated wallet with a small balance, never your main wallet.
|
|
83
|
-
|
|
84
|
-
## Develop
|
|
85
|
-
|
|
86
|
-
```bash
|
|
87
|
-
npm install
|
|
88
|
-
npm run inspect
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
`npm run inspect` opens the MCP Inspector so you can try the tools by hand.
|
|
1
|
+
# Autonomo MCP server
|
|
2
|
+
|
|
3
|
+
Give Claude, Codex, Cursor or any MCP client access to Autonomo's paid APIs. The agent finds an API, checks the
|
|
4
|
+
price and pays per call with x402, in USDG or $AUTONOMO on Robinhood Chain. No API keys and no account: just a wallet.
|
|
5
|
+
|
|
6
|
+
The server runs on your own computer. Your wallet key stays there and is only used to sign payments.
|
|
7
|
+
|
|
8
|
+
## Tools
|
|
9
|
+
|
|
10
|
+
| Tool | What it does | Costs |
|
|
11
|
+
| --- | --- | --- |
|
|
12
|
+
| `find_apis` | Search Autonomo's APIs (token prices, launches, rug risk, wallets, transactions, page reader). Optionally also the directory of 3.7K x402 projects. | Free |
|
|
13
|
+
| `get_price` | Call an API without paying and show its price. | Free |
|
|
14
|
+
| `call_api` | Pay for one call and return the answer, with the payment link on Blockscout. | Usually 0.01 USDG or 100 $AUTONOMO |
|
|
15
|
+
|
|
16
|
+
## Setup
|
|
17
|
+
|
|
18
|
+
1. Make a **new wallet just for your agent**, and send it a little USDG (1 USDG is 100 calls) or $AUTONOMO on
|
|
19
|
+
Robinhood Chain. Paying in $AUTONOMO needs a little ETH once, for the Permit2 approval.
|
|
20
|
+
2. Add the server to your client (below), with that wallet's private key as `AUTONOMO_WALLET_KEY`.
|
|
21
|
+
3. Ask: "Is token 0x… safe? Use Autonomo."
|
|
22
|
+
|
|
23
|
+
Without a key, `find_apis` and `get_price` still work.
|
|
24
|
+
|
|
25
|
+
### Claude Code
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
claude mcp add autonomo -e AUTONOMO_WALLET_KEY=0xYOUR_AGENT_WALLET_KEY -- npx -y autonomo-mcp
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
On Windows, start `npx` through `cmd /c`. In PowerShell, quote the `--`:
|
|
32
|
+
|
|
33
|
+
```powershell
|
|
34
|
+
claude mcp add autonomo -e AUTONOMO_WALLET_KEY=0xYOUR_AGENT_WALLET_KEY '--' cmd /c npx -y autonomo-mcp
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Claude Desktop, Cursor and others
|
|
38
|
+
|
|
39
|
+
Add this to the client's MCP config (`claude_desktop_config.json`, `.cursor/mcp.json`, …):
|
|
40
|
+
|
|
41
|
+
```json
|
|
42
|
+
{
|
|
43
|
+
"mcpServers": {
|
|
44
|
+
"autonomo": {
|
|
45
|
+
"command": "npx",
|
|
46
|
+
"args": ["-y", "autonomo-mcp"],
|
|
47
|
+
"env": { "AUTONOMO_WALLET_KEY": "0xYOUR_AGENT_WALLET_KEY" }
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
If the client can't find `npx` on Windows, use `"command": "cmd"` and `"args": ["/c", "npx", "-y", "autonomo-mcp"]`.
|
|
54
|
+
|
|
55
|
+
### Codex
|
|
56
|
+
|
|
57
|
+
In `~/.codex/config.toml`:
|
|
58
|
+
|
|
59
|
+
```toml
|
|
60
|
+
[mcp_servers.autonomo]
|
|
61
|
+
command = "npx"
|
|
62
|
+
args = ["-y", "autonomo-mcp"]
|
|
63
|
+
env = { AUTONOMO_WALLET_KEY = "0xYOUR_AGENT_WALLET_KEY" }
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Settings
|
|
67
|
+
|
|
68
|
+
| Env var | Default | Meaning |
|
|
69
|
+
| --- | --- | --- |
|
|
70
|
+
| `AUTONOMO_WALLET_KEY` | none | Private key of the agent's wallet. Needed only for `call_api`. |
|
|
71
|
+
| `AUTONOMO_PAY_WITH` | `usdg` | `usdg` or `autonomo`, the token used when the agent doesn't say. |
|
|
72
|
+
| `AUTONOMO_DAILY_USDG` | `1` | Most USDG the server will spend per UTC day. |
|
|
73
|
+
| `AUTONOMO_DAILY_AUTONOMO` | `10000` | Most $AUTONOMO the server will spend per UTC day. |
|
|
74
|
+
| `AUTONOMO_BASE_URL` | `https://autonomo.fun` | Only for testing against a local copy of the site. |
|
|
75
|
+
|
|
76
|
+
## Safety
|
|
77
|
+
|
|
78
|
+
- It only pays Autonomo gateways (`autonomo.fun/x/...`), and only in USDG or $AUTONOMO on Robinhood Chain.
|
|
79
|
+
- Each call is capped at 0.05 USDG or 5,000 $AUTONOMO, whatever the API asks.
|
|
80
|
+
- The daily budget is tracked in `~/.autonomo-mcp/spend.json`.
|
|
81
|
+
- Your MCP client asks before each tool call, so you approve every payment unless you choose to allow it always.
|
|
82
|
+
- Use a dedicated wallet with a small balance, never your main wallet.
|
|
83
|
+
|
|
84
|
+
## Develop
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
npm install
|
|
88
|
+
npm run inspect
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
`npm run inspect` opens the MCP Inspector so you can try the tools by hand.
|
package/index.mjs
CHANGED
|
@@ -19,7 +19,7 @@ import { ExactEvmScheme } from "@x402/evm/exact/client";
|
|
|
19
19
|
import { wrapFetchWithPayment } from "@x402/fetch";
|
|
20
20
|
import { z } from "zod";
|
|
21
21
|
|
|
22
|
-
const VERSION = "0.1.
|
|
22
|
+
const VERSION = "0.1.1";
|
|
23
23
|
const BASE = (process.env.AUTONOMO_BASE_URL || "https://autonomo.fun").replace(/\/+$/, "");
|
|
24
24
|
const NETWORK = "eip155:4663";
|
|
25
25
|
const RPC = "https://rpc.mainnet.chain.robinhood.com";
|
|
@@ -224,7 +224,8 @@ server.registerTool(
|
|
|
224
224
|
title: "Find Autonomo APIs",
|
|
225
225
|
description:
|
|
226
226
|
"Search the paid APIs on Autonomo (token prices, new launches, rug-risk checks, wallet portfolios, transaction explainers, " +
|
|
227
|
-
"page reader and more on Robinhood Chain). Returns each API's slug, price and the path to call.
|
|
227
|
+
"page reader and more on Robinhood Chain). Returns each API's slug, price and the path to call. verified means the provider holds the Verified minimum of " +
|
|
228
|
+
"$AUTONOMO; it isn't a review of the API. Free. " +
|
|
228
229
|
"Set include_directory to also search Autonomo's directory of 3.7K x402 projects on other networks (listed for reference; " +
|
|
229
230
|
"call_api only pays Autonomo gateways).",
|
|
230
231
|
inputSchema: {
|
|
@@ -239,7 +240,7 @@ server.registerTool(
|
|
|
239
240
|
const score = (g) => words.filter((w) => `${g.slug} ${g.name} ${g.description}`.toLowerCase().includes(w)).length;
|
|
240
241
|
const apis = words.length ? data.map((g) => [score(g), g]).filter(([s]) => s > 0).sort((a, b) => b[0] - a[0]).map(([, g]) => g) : data;
|
|
241
242
|
const result = {
|
|
242
|
-
apis: (apis.length ? apis : data).map(({ slug, name, description, usage, price }) => ({ slug, name, description, path: usage, price })),
|
|
243
|
+
apis: (apis.length ? apis : data).map(({ slug, name, description, usage, price, verified }) => ({ slug, name, description, path: usage, price, verified })),
|
|
243
244
|
note: !data.length
|
|
244
245
|
? "No Autonomo APIs are listed right now."
|
|
245
246
|
: apis.length || !words.length
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autonomo-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "MCP server for Autonomo: AI agents find x402 APIs, check prices and pay per call in USDG or $AUTONOMO on Robinhood Chain.",
|
|
5
5
|
"homepage": "https://autonomo.fun",
|
|
6
6
|
"author": "Autonomo (https://autonomo.fun)",
|