openrouter-admin
MCP server by oviron Community
Provides an MCP server for the OpenRouter management API. It covers credits, inference key management, guardrails, and usage analytics. Built for developers who manage OpenRouter accounts from Claude Code, Claude Desktop, Cursor, or other MCP clients.
Install openrouter-admin
Built from the published package, never by AI.
claude mcp add openrouter-admin -e OPENROUTER_PROVISIONING_KEY=YOUR_OPENROUTER_PROVISIONING_KEY -- npx -y openrouter-admin-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"openrouter-admin": {
"env": {
"OPENROUTER_PROVISIONING_KEY": "YOUR_OPENROUTER_PROVISIONING_KEY"
},
"args": [
"-y",
"openrouter-admin-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"openrouter-admin": {
"env": {
"OPENROUTER_PROVISIONING_KEY": "YOUR_OPENROUTER_PROVISIONING_KEY"
},
"args": [
"-y",
"openrouter-admin-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"openrouter-admin": {
"env": {
"OPENROUTER_PROVISIONING_KEY": "YOUR_OPENROUTER_PROVISIONING_KEY"
},
"args": [
"-y",
"openrouter-admin-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add openrouter-admin --env OPENROUTER_PROVISIONING_KEY=YOUR_OPENROUTER_PROVISIONING_KEY -- npx -y openrouter-admin-mcp{
"mcpServers": {
"openrouter-admin": {
"env": {
"OPENROUTER_PROVISIONING_KEY": "YOUR_OPENROUTER_PROVISIONING_KEY"
},
"args": [
"-y",
"openrouter-admin-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add openrouter-admin npx -y openrouter-admin-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the openrouter-admin block.
About
openrouter-admin-mcp is an MCP server that wraps the OpenRouter management API. It exposes account credits, inference keys, guardrails, organization members, model and endpoint data, and usage activity as tools an AI assistant can call. The server is published on npm and runs through npx or a global install. It uses an OpenRouter Provisioning API key, which can manage the account but cannot make completion calls.
The server is read-only by default. Key creation, update, and deletion are only enabled when the OPENROUTER_ADMIN_ALLOW_WRITE environment variable is set. The source says the server returns raw API fields and leaves interpretation to the agent. It is aimed at developers and account administrators who want to check spend, drill into usage, and adjust keys and guardrails from inside an MCP-compatible client.
Written from the project's README and checked against it.
Tools it gives your assistant
or_overviewOne-shot dashboard with credits, active keys, and today's UTC burn by model.or_keys_listLists all inference keys with usage, limits, reset cadence, and expiration.or_key_createCreates a new inference key and returns the one-time secret. Write mode only.or_key_updateUpdates a key's name, disabled state, limit, limit_reset, or expires_at. Write mode only.or_activityShows usage for the last 30 UTC days with filters and by_model, by_day, by_provider, or by_key modes.or_generationFetches a single inference call by its gen id, with cost, tokens, latency, and finish reason.or_guardrails_listLists all guardrails with limit_usd, reset, allow and block lists, and ZDR settings.or_guardrail_assign_keysBulk-assigns a guardrail to inference keys. Write mode only.or_modelsLists the model catalog with per-1M token pricing, context length, and modalities.or_org_membersLists members of the OpenRouter organization. Requires a Management key and org account.
What you need
- OpenRouter Provisioning API key
- MCP-compatible client such as Claude Code, Claude Desktop, or Cursor
- Node.js with npx or npm
| Setting | Needed | What it is |
|---|---|---|
OPENROUTER_Environment variable, secret | Required | OpenRouter Provisioning API key — create at https://openrouter.ai/settings/provisioning. Distinct from inference keys: it can manage your account but cannot make completion calls. |
OPENROUTER_Environment variable | Optional | Set to '1' to enable destructive write tools (or_key_create, or_key_update, or_key_delete). Disabled by default — read-only tools (or_overview, or_credits, or_keys_list, or_key_get, or_activity, or_current_key) are always available. |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- What burned my OpenRouter credits this week?
- Create a temporary key with a $0.30 daily cap.
- Show my OpenRouter credits and active keys today.
Good to know
- Read-only by default. Write tools need OPENROUTER_ADMIN_ALLOW_WRITE=1.
- Not an inference proxy. The Provisioning key cannot make completion calls.
- Returns raw API fields without flagging anomalies or limits.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to openrouter-admin
All alternatives →Oh My Posh Validator is listed as an MCP server, but the source is the README for oh-my-posh, a cross platform prompt theme engine. It does not describe an MCP server, tools, or schema validation.
Sim is a workspace for building, deploying and managing AI agents and workflows. Its MCP server lets Claude, Claude Code, Codex or another MCP client manage workspaces, workflows, tables, knowledge bases, files and logs.
Omnara deploys durable AI agents on any model and any machine. It is an open-source, self-hostable managed agent platform under Apache 2.0, with a REST API, TypeScript SDK, CLI, and MCP server.
Strata is an MCP server from Klavis AI for progressive tool usage, described as a way to optimize the AI agent's context window. The repository is deprecated, but it remains public for reference and for local or hosted use.
VoiceMode is an MCP server that adds voice conversations to Claude Code and other MCP capable agents. It uses speech-to-text and text-to-speech. It suits people whose hands or eyes are busy.
Gives an AI agent access to the skills, plugins, MCP connections, and Google Workspace and Microsoft 365 capabilities assigned to you by your OpenWork organization, through one OAuth MCP URL. Intended for people and teams who want to reuse the same setup across agents, tools, and machines.
Compare with Oh My Posh Validator, Sim or Omnara
openrouter-admin: common questions
Can this server make AI model calls?
No. The source says it is not an inference proxy and uses a Provisioning key that cannot make completion calls.
Are key changes allowed by default?
No. Key create, update, and delete tools are disabled unless OPENROUTER_ADMIN_ALLOW_WRITE is set.
Where is my provisioning key sent?
The source says the key is forwarded only to https://openrouter.ai/api/v1/* over HTTPS and is not shown in error messages or tool output.
How do I install openrouter-admin?
In Claude Code run claude mcp add openrouter-admin -e OPENROUTER_PROVISIONING_KEY=YOUR_OPENROUTER_PROVISIONING_KEY -- npx -y openrouter-admin-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is openrouter-admin the official server?
openrouter-admin is a community project by oviron, not verified by a company domain.
Is openrouter-admin free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is openrouter-admin safe to use?
It scores 70 of 100. Grades: maintenance B, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to openrouter-admin?
Similar MCP servers: Oh My Posh Validator, Sim, Omnara, strata.
Does openrouter-admin work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
