Brushrouter
MCP server by avinaxhroy Verified · npm:brushrouter
Generates images through a CLI and MCP server, routing each request to the image backend already on the machine. Built for people who want to use ChatGPT, Google or OpenRouter logins they already pay for.
Install Brushrouter
Built from the published package, never by AI.
claude mcp add brushrouter -- npx -y brushrouterRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"brushrouter": {
"args": [
"-y",
"brushrouter"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"brushrouter": {
"args": [
"-y",
"brushrouter"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"brushrouter": {
"args": [
"-y",
"brushrouter"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add brushrouter -- npx -y brushrouter{
"mcpServers": {
"brushrouter": {
"args": [
"-y",
"brushrouter"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add brushrouter npx -y brushrouterGemini 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 brushrouter block.
About
Brushrouter is a CLI and MCP server for generating images. It routes each request across the image backends on a machine, in order: the native Codex CLI, a ChatGPT subscription, Gemini or Antigravity, OpenRouter, fal.ai, and custom HTTP endpoints. If one backend fails, it falls back to the next. The source says models never see credentials, because a redactor runs on every output.
The project also ships a prompt library with 27 job recipes and 137 visual looks. The looks are vendored from an MIT-licensed cookbook and credited in the results. Running brushrouter setup detects installed backends and wires detected agents' MCP configs. It is aimed at people who want to generate images with subscriptions they already pay for.
Written from the project's README and checked against it.
Tools it gives your assistant
genGenerates an image from a prompt, with options for provider, size, quality, and reference images.providersShows which image providers are connected and how each one is connected.routesLists the routes auto-routing may use and lets you enable or disable each one.promptsSearches the library of 27 recipes and 137 looks to brief an image.modelsLists model ids for each provider, live for OpenRouter.doctorDiagnoses provider backends and agent MCP integrations.installAdds brushrouter to the MCP configs of detected agents.serveRuns brushrouter as an MCP server over stdio.
What you need
- Node.js 20 or later
- A ChatGPT login with a paid plan, or Codex CLI login, for the codex routes
- Antigravity (agy) or Gemini CLI login for the gemini route
- An OpenRouter key for the openrouter route
- A fal.ai key for the fal route
Try asking
- Generate a red fox in snow and save it as fox.png
- Find a tested prompt recipe for a product hero shot
- Show which image providers are connected on this machine
Good to know
- The openrouter route is billed per request and is off by default.
- Transparent backgrounds are only a real API field on the codex routes; other routes may return flattened images.
- Codex takes aspect ratio from the prompt, so exact pixel sizes are not guaranteed.
- The gptweb2api route is off by default and has a small free-plan daily limit, about 2 to 3 images.
Security check
C- Downloads a script from the internet and runs itIn
README.md:curl -fsSL https://raw.githubusercontent.com/avinaxhroy/brushrouter/main/install.sh | bash
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Brushrouter
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
Brushrouter: common questions
Does brushrouter need a new API balance?
Routes that reuse an existing login, such as a ChatGPT subscription or Google login, add no per-image spend. OpenRouter is the only route the source describes as billed per request, and it is off by default.
Are my credentials exposed to the AI model?
The source says no. Models never see your credentials, and a redactor is applied to every output.
Can I turn off a backend?
Yes. brushrouter routes disable <id> skips a route during auto-routing. A disabled route can still be used with --provider.
How do I install Brushrouter?
In Claude Code run claude mcp add brushrouter -- npx -y brushrouter. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Brushrouter the official server?
Brushrouter is published by npm:brushrouter from its verified domain in the official MCP Registry.
Is Brushrouter free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Brushrouter safe to use?
It scores 79 of 100. Grades: maintenance A, licence A, quality C. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.
What are alternatives to Brushrouter?
Similar MCP servers: Oh My Posh Validator, Sim, Omnara, strata.
Does Brushrouter 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.
