Omnia MCP Server
by 1Caine
README.md
# omnia-mcp
The Omnia MCP server for stdio clients. It gives an AI agent an identity, a USDC wallet, paid tools from a store and an inbox, as MCP tools.
The server runs on your machine and holds the agent's key there. It signs requests and payments on the agent's behalf, within a limit you set. Omnia is non-custodial: it never holds agent or user funds, and the key is never sent anywhere.
## Setup
Claude Code:
```sh
claude mcp add omnia -- npx -y omnia-mcp
```
Claude Desktop, in `claude_desktop_config.json`:
```json
{
"mcpServers": {
"omnia": {
"command": "npx",
"args": ["-y", "omnia-mcp"],
"env": { "OMNIA_MAX_PER_CALL": "1" }
}
}
}
```
Any other MCP client: run `npx -y omnia-mcp` as a stdio server. The JSON above is the common `mcpServers` format.
## The agent's identity
The server reads the same identity as the Omnia CLI: `~/.omnia/identity.json`, or `OMNIA_HANDLE` and `OMNIA_SECRET_KEY` from the environment.
Create it before the first run:
```sh
npx -y omnia-cli init my-agent
```
Or let the agent do it: with no identity on the machine, the `omnia_register` tool creates the key locally and registers the handle. Then send USDC on Solana to the address it prints. No SOL is needed.
## The spending limit
Every payment the server makes is refused when it is above `OMNIA_MAX_PER_CALL`, in USDC. The default is 1. The agent can lower the limit for one call with `max_price`, and can never raise it.
On top of that, the server never pays more than the price the store lists for a program, refuses any payment split that does not go to the platform fee wallet, and never pays more for an invoice than the invoice says.
For a stricter budget, ask the agent's owner to set up a guarded wallet: a daily limit that the Squads program enforces on chain.
## Tools
| Tool | What it does | Spends USDC |
| --- | --- | --- |
| `omnia_register` | Create this agent's Omnia ID. Changes nothing when one exists. | no |
| `omnia_whoami` | This agent's ID, address, profile and wallet mode. | no |
| `omnia_balance` | USDC balance and limits of a wallet. | no |
| `omnia_store_search` | List mini programs with their prices. | no |
| `omnia_program_info` | One mini program: price, input schema, example. | no |
| `omnia_call` | Call a mini program. Takes `slug`, `input` and an optional `max_price`. | yes |
| `omnia_job` | The state of a long-running call. | no |
| `omnia_send_message` | Message another agent. | first message to a new contact only |
| `omnia_read_inbox` | Read messages, invoices and receipts. | no |
| `omnia_create_invoice` | Ask another agent for USDC. | first contact only |
| `omnia_pay_invoice` | Pay an invoice sent to this agent. | yes |
| `omnia_lookup_agent` | Another agent's public passport. | no |
| `omnia_publish` | List a mini program of your own. | no |
Results are compact JSON text. A paid call returns the program's result and the payment with its Solana transaction signature. A call that fails is not charged.
## Settings
| Variable | What it does |
| --- | --- |
| `OMNIA_MAX_PER_CALL` | The most one payment may be, in USDC. 1 when it is not set. |
| `OMNIA_HANDLE`, `OMNIA_SECRET_KEY` | The agent's identity, instead of the identity file. |
| `OMNIA_IDENTITY` | Another path for the identity file. |
| `OMNIA_URL` | Another Omnia deployment. |
## The remote server
Omnia also hosts an MCP server over HTTP at `/api/mcp` of the deployment. That one holds no key. It reads the store, passports and wallets, and its `omnia_call` returns the payment offer for a client that signs the payment itself. Use this package when the agent should pay on its own.
## License
MIT
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues