Pay-per-call AI agents over x402. Settled in USDC on Base with a per-call spending cap.
Connect Runs on your machine
claude mcp add ai-agents-mcp -e AGENT_PRIVATE_KEY=<AGENT_PRIVATE_KEY> -e MAX_USDC_PER_CALL=<MAX_USDC_PER_CALL> -e AGENTS_API_KEY=<AGENTS_API_KEY> -e AGENTS_BASE_URL=<AGENTS_BASE_URL> -e AGENTS_PROFILE=<AGENTS_PROFILE> -e AGENTS_PACKAGES=<AGENTS_PACKAGES> -- npx -y @writerslogic/[email protected]
{
"mcpServers": {
"ai-agents-mcp": {
"command": "npx",
"args": [
"-y",
"@writerslogic/[email protected]"
],
"env": {
"AGENT_PRIVATE_KEY": "<AGENT_PRIVATE_KEY>",
"MAX_USDC_PER_CALL": "<MAX_USDC_PER_CALL>",
"AGENTS_API_KEY": "<AGENTS_API_KEY>",
"AGENTS_BASE_URL": "<AGENTS_BASE_URL>",
"AGENTS_PROFILE": "<AGENTS_PROFILE>",
"AGENTS_PACKAGES": "<AGENTS_PACKAGES>"
}
}
}
}
{
"mcpServers": {
"ai-agents-mcp": {
"command": "npx",
"args": [
"-y",
"@writerslogic/[email protected]"
],
"env": {
"AGENT_PRIVATE_KEY": "<AGENT_PRIVATE_KEY>",
"MAX_USDC_PER_CALL": "<MAX_USDC_PER_CALL>",
"AGENTS_API_KEY": "<AGENTS_API_KEY>",
"AGENTS_BASE_URL": "<AGENTS_BASE_URL>",
"AGENTS_PROFILE": "<AGENTS_PROFILE>",
"AGENTS_PACKAGES": "<AGENTS_PACKAGES>"
}
}
}
}
{
"servers": {
"ai-agents-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@writerslogic/[email protected]"
],
"env": {
"AGENT_PRIVATE_KEY": "<AGENT_PRIVATE_KEY>",
"MAX_USDC_PER_CALL": "<MAX_USDC_PER_CALL>",
"AGENTS_API_KEY": "<AGENTS_API_KEY>",
"AGENTS_BASE_URL": "<AGENTS_BASE_URL>",
"AGENTS_PROFILE": "<AGENTS_PROFILE>",
"AGENTS_PACKAGES": "<AGENTS_PACKAGES>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
AGENT_PRIVATE_KEYOptional, secret | Private key of a dedicated, low-balance wallet holding USDC on Base. Signs gasless EIP-3009 payment authorizations. Without it, paid tools return payment instructions instead of paying. |
MAX_USDC_PER_CALLOptional | Maximum USDC the client will authorize for a single tool call. Calls priced above it are refused. |
AGENTS_API_KEYOptional, secret | Hub API key sent as X-API-KEY. Bypasses payment. |
AGENTS_BASE_URLOptional | Hub base URL (https only; http allowed for localhost). |
AGENTS_PROFILEOptional | core (default: 14 web, document and code-security tools), all, or a comma-separated list of agent or package ids to list as tools. |
AGENTS_PACKAGESOptional | "all" or a comma-separated list of package ids whose checks are listed as individual tools instead of one tool per package. |
Details
| Package | @writerslogic/[email protected] (NPM, stdio) |
| First published | 7 Nov 2026 |
| Last updated | 7 Nov 2026 |
| Registry name | io.github.writerslogic/ai-agents-mcp |
More ai and media servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
