# Autarcho

> Autarcho is a paid MCP server for ai models and llm tooling. Pay-per-token open-model inference through an OpenAI-style API, settled in USDC on Solana. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** API, CLI, Self-hosted
- **Website:** https://autarcho.com/docs/api/
- **MCP Registry name:** io.github.czeti/autarcho-mcp
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-11-19

## About

The README and API reference describe Autarcho as a gateway to open-weight language models that bills by generated token rather than by subscription. Requests use the OpenAI chat-completions format, so existing clients such as LiteLLM and LangChain can be pointed at its base URL with a key that carries USDC credit. The docs note that the API is a deliberate subset: parameters outside the supported table are refused with an error naming the parameter instead of being silently ignored.

Keys are generated locally in the format ak_ followed by 64 hex characters and funded on Solana, with no sign-up or identity check. Per-token prices can be read from a public endpoint, and a request can be rejected before any charge if its price exceeds a caller-set limit. Models are addressed by a stable hash or an alias, and the docs explain that a model owner can repoint an alias.

The MCP server, published on npm as autarcho-mcp, exposes list_models, get_price, chat_completion and get_balance to agent clients and caps a single completion at 2048 generated tokens. It is aimed at developers and agent builders who want pay-as-you-go access to open models without account setup.

## Features

- **OpenAI-compatible chat API:** Accepts the OpenAI chat-completions shape, so existing SDKs and frameworks can target its base URL.
- **Per-token USDC billing:** Charges for generated tokens only, with prompt tokens reported as unbilled, paid in USDC on Solana.
- **Price cap per request:** A max_price_per_token_micro_usdc field refuses a call before anything is charged if the price is too high.
- **Streaming and tool calls:** Supports server-sent event streaming and OpenAI-style function calling, with complete tool calls delivered at stream end.
- **Structured JSON output:** Offers json_object and json_schema response formats, with generation stopping on its own for finite schemas.
- **MCP server for agents:** The autarcho-mcp npm package gives agent clients model listing, pricing, completion and balance tools.

## Good for

- Calling open-weight language models from an existing OpenAI-style application without a monthly subscription
- Tracking inference cost per token by reading the published price endpoint
- Giving an AI agent pay-per-use access to models via an MCP server
- Generating structured JSON output from open models with a supplied schema
- Pinning a model by hash so results stay tied to the same model over time

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add autarcho-mcp --env AUTARCHO_API_KEY='<AUTARCHO_API_KEY>' -- npx -y autarcho-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "autarcho-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autarcho-mcp"
      ],
      "env": {
        "AUTARCHO_API_KEY": "<AUTARCHO_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "autarcho-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autarcho-mcp"
      ],
      "env": {
        "AUTARCHO_API_KEY": "<AUTARCHO_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "autarcho-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autarcho-mcp"
      ],
      "env": {
        "AUTARCHO_API_KEY": "<AUTARCHO_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "autarcho-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "autarcho-mcp"
      ],
      "env": {
        "AUTARCHO_API_KEY": "<AUTARCHO_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add autarcho-mcp --env AUTARCHO_API_KEY='<AUTARCHO_API_KEY>' -- npx -y autarcho-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.autarcho-mcp]
command = "npx"
args = ["-y", "autarcho-mcp"]
env = { AUTARCHO_API_KEY = "<AUTARCHO_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "autarcho-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autarcho-mcp"
      ],
      "env": {
        "AUTARCHO_API_KEY": "<AUTARCHO_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e AUTARCHO_API_KEY='<AUTARCHO_API_KEY>' autarcho-mcp npx -- -y autarcho-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "autarcho-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autarcho-mcp"
      ],
      "env": {
        "AUTARCHO_API_KEY": "<AUTARCHO_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "autarcho-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autarcho-mcp"
      ],
      "env": {
        "AUTARCHO_API_KEY": "<AUTARCHO_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "autarcho-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autarcho-mcp"
      ],
      "env": {
        "AUTARCHO_API_KEY": "<AUTARCHO_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "autarcho-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autarcho-mcp"
      ],
      "env": {
        "AUTARCHO_API_KEY": "<AUTARCHO_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "autarcho-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autarcho-mcp"
      ],
      "env": {
        "AUTARCHO_API_KEY": "<AUTARCHO_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "autarcho-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autarcho-mcp"
      ],
      "env": {
        "AUTARCHO_API_KEY": "<AUTARCHO_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "autarcho-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autarcho-mcp"
      ],
      "env": {
        "AUTARCHO_API_KEY": "<AUTARCHO_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "autarcho-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "autarcho-mcp"
      ],
      "env": {
        "AUTARCHO_API_KEY": "<AUTARCHO_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 3 of 4 tools read data; 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `list_models` (name suggests: reads): Lists the models available to the configured key.
- `get_price` (name suggests: reads): Returns the price per generated token for a model.
- `chat_completion`: Runs one chat completion, capped at 2048 generated tokens.
- `get_balance` (name suggests: reads): Returns the credit balance on the configured key.

## FAQ

### How do I get an API key?

Keys are generated by the client in the format ak_ followed by 64 hex characters, then funded with credit. The docs say there is no sign-up form, email verification or identity check.

### What happens if a model is unavailable?

A model that has left the verified catalogue returns 404 model_not_found, which is final. A model with no operator online returns 503, which the docs say is worth retrying with backoff.

### Are prompt tokens charged?

No. The usage field reports prompt_tokens as zero because the prompt is not billed; only generated tokens are charged.

### Which parameters are not supported?

stop, seed, logprobs, n above 1, and image or audio content return a 400 unsupported_parameter error rather than being ignored.

### Is Autarcho free?

No. Autarcho is a paid product.

### How do I add Autarcho to Claude Code?

Run this command in your terminal: claude mcp add autarcho-mcp --env AUTARCHO_API_KEY='<AUTARCHO_API_KEY>' -- npx -y autarcho-mcp

### What are the best alternatives to Autarcho?

The closest alternatives to Autarcho are Synap, JarvisClaw — AI Gateway & API Marketplace, uplinkswitch, APEX AI, LLM, PDF, QR, JSON & Media MCP and Unrestrictable.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Synap](https://ai-powered.com/mcp/synap-2): Synap is a freemium MCP server for ai models and llm tooling.
- [JarvisClaw — AI Gateway & API Marketplace](https://ai-powered.com/mcp/jarvisclaw-ai-gateway-and-api-marketplace): JarvisClaw — AI Gateway & API Marketplace is a freemium MCP server for ai models and llm tooling.
- [uplinkswitch](https://ai-powered.com/mcp/uplinkswitch-2): uplinkswitch is a paid MCP server for design and media.
- [APEX AI, LLM, PDF, QR, JSON & Media MCP](https://ai-powered.com/mcp/apex-ai-llm-pdf-qr-json-and-media-mcp): APEX AI, LLM, PDF, QR, JSON & Media MCP is a freemium MCP server for files and documents.
- [Unrestrictable](https://ai-powered.com/mcp/unrestrictable): Unrestrictable is a paid MCP server for ai models and llm tooling.
- [BridgeNode MCP](https://ai-powered.com/mcp/bridgenode-mcp): BridgeNode MCP is a freemium MCP server for ai models and llm tooling.
- [Ezkielyna API](https://ai-powered.com/mcp/ezkielyna-api): Ezkielyna API is a paid MCP server for ai models and llm tooling.
- [UncensoredLLM](https://ai-powered.com/mcp/uncensoredllm): UncensoredLLM is a freemium MCP server for ai models and llm tooling.

---
Source: https://ai-powered.com/mcp/autarcho
