llm-provider-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@llm-provider-mcpDelegate the failing auth test to Cursor and check back later."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
llm-provider-mcp
Delegate coding work between Claude Code, Codex, Cursor Agent, and Pi.
llm-provider-mcp is a local MCP server for asynchronous coding-agent
delegation. A Codex or Claude Code session can start work in another coding CLI,
receive a job ID immediately, continue its own work, and collect the delegated
result later.
Delegated agents run locally in detached tmux sessions using their existing logins, model access, filesystem permissions, and the host's current trusted project directory.

In this live smoke test, Codex used llm-provider-mcp to delegate work to
Grok 4.5 through Cursor Agent, waited for the asynchronous result, and confirmed
that the task completed without modifying files.

This is a real Claude Code to Cursor Composer 2.5 run: the job completed in 28 seconds and Claude independently verified the diff and uncached test result. See the reproducible demo and sanitized transcript.

This second real run delegates from Claude Code to Codex CLI with
gpt-5.6-sol. Codex completed the bounded fix in 36 seconds, and Claude
independently inspected the diff and reran the test. The run used Codex CLI
0.145.0-alpha.4; stable 0.144.1 rejected Sol during its rollout.
Quick Start
Requirements:
macOS or Linux
tmux 3.x or newer
Codex or Claude Code as an MCP host
At least one authenticated target: Cursor Agent, Pi, Codex, or Claude Code
From the project where you want to use delegation, run:
curl -fsSL https://raw.githubusercontent.com/manishiitg/llm-provider-mcp/main/scripts/install-mcp.sh | shThe interactive setup detects installed CLIs, lets you select multiple hosts and targets, verifies authentication, registers the MCP server only for the current project, and installs a small delegation skill.
The server is also published in the official MCP Registry
as io.github.manishiitg/llm-provider-mcp.
Start a new Codex or Claude Code session in that project and ask naturally:
Delegate the failing authentication test to Cursor using composer-2.5.
Keep working here and check the delegated job when it is ready.The host receives a response shaped like:
{
"job_id": "job_03070f8a2626b50ace1a67a463db9b4d",
"provider": "cursor-cli",
"status": "queued",
"poll_after_seconds": 15,
"next_tool": "get_coding_agent_job"
}See Installation for manual and security-conscious installation options.
Related MCP server: agent-network
Why Use It
Use a stronger model for an independent review or difficult implementation.
Route small work to a faster or lower-cost model without leaving the host.
Access Cursor, Gemini, OpenRouter, MiniMax, GLM, and Kimi models from Codex or Claude Code.
Run independent delegations concurrently without blocking the host session.
Inspect a live terminal tail or attach directly to tmux when human attention is needed.
Keep credentials with the native CLIs instead of copying API keys into the MCP server.
Supported Coding CLIs
CLI | MCP host | Delegation target | Model selection |
Codex CLI | Yes | Yes | Codex model IDs and reasoning levels |
Claude Code | Yes | Yes | Claude Code model selectors |
Cursor Agent | Manual registration | Yes | Composer, Grok, and account-visible models |
Pi CLI | Manual registration | Yes | Gemini, OpenRouter, MiniMax, GLM, and Kimi |
The setup wizard currently registers Codex and Claude Code as hosts. Cursor and Pi can use the same stdio MCP server through manual project configuration. All four CLIs can run as local delegation targets.
Antigravity CLI remains available only as a deprecated Go-library compatibility integration and is not offered during new MCP setup. Gemini CLI has been removed; use Pi CLI for Gemini models or Vertex for direct Gemini API access.
See Providers and models for selectors, authentication commands, and provider-specific behavior.
How Delegation Works
sequenceDiagram
participant H as Claude Code or Codex
participant M as llm-provider-mcp
participant J as Job worker
participant T as Cursor, Pi, Codex, or Claude
H->>M: delegate_coding_agent(task, provider, working_dir)
M->>J: Persist and queue job
M-->>H: job_id immediately
J->>T: Start detached tmux session
H->>H: Continue host work
H->>M: get_coding_agent_job(job_id)
M-->>H: Progress, terminal tail, or final resultThe host passes its current trusted project and a bounded task.
The server validates the provider and workspace, then persists the job in SQLite.
A detached worker launches the target CLI in tmux.
The host polls after the recommended interval while continuing other work.
The host reviews the final result and verifies any workspace changes.
Polling is the current completion mechanism. MCP task notifications are planned after behavior is consistent across supported hosts.
See Delegation workflow and Architecture for the complete lifecycle.
MCP Tools
The server exposes five tools:
Tool | Purpose |
| List enabled delegation targets and capabilities |
| Discover curated model selectors |
| Start an asynchronous coding job |
| Read status, progress, terminal output, or result |
| Stop a queued or running job |
Running jobs include a tmux attach command for direct human inspection.
get_coding_agent_job can also return a bounded, ANSI-cleaned terminal tail.
CLI Commands
llm-provider-mcp setup
llm-provider-mcp doctor
llm-provider-mcp models cursor-cli
llm-provider-mcp models pi-cli --json
llm-provider-mcp uninstallsetup, doctor, and uninstall are designed to work without additional
arguments. Run llm-provider-mcp --help for automation flags.
Security And Trust
The MCP server and delegated CLIs run on the local machine.
Credentials remain owned by each native CLI and are never collected by setup.
Setup writes project-local MCP and skill configuration only after showing the exact paths.
The host supplies its current trusted project as
working_dir; users are not asked to enter it for every job.Detached agents use unattended provider-specific policies so they do not block on invisible approval prompts.
LLM_PROVIDER_MCP_WORKSPACE_ROOTScan restrict accepted working directories, but it is not a process sandbox.
Pi currently has no hard workspace sandbox, so its shell and file tools retain the permissions of the local user. Do not delegate untrusted prompts or repositories to Pi.
Read Security and trust before enabling unattended delegation in sensitive repositories.
Current Limitations
macOS and Linux only; Windows is not currently supported.
tmux is required for delegated execution and live inspection.
Completion is polling-based rather than pushed to the host.
Host auto-registration currently supports Codex and Claude Code.
Target model availability depends on the user's existing CLI account.
A delegated agent can modify the working tree; the host must review and test those changes before accepting them.
Documentation
Go Compatibility Library
This repository also contains the Go provider module used by MCP Agent and MCP Agent Builder. Its existing module path remains intentionally unchanged:
go get github.com/manishiitg/multi-llm-provider-go@latestThe general provider APIs remain supported for downstream compatibility, but
the primary product surface of this repository is llm-provider-mcp. See the
Go compatibility library documentation.
Development
make build-mcp
go test ./...
golangci-lint run --timeout=5m ./...The CI suite also compile-checks MCP Agent and MCP Agent Builder against the current checkout to prevent accidental public-API breakage.
See CONTRIBUTING.md before opening a pull request. Report security issues using SECURITY.md, not a public issue.
License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityBmaintenanceA local MCP server that connects AI coding agents (Claude Code, Codex, Cursor, etc.) on the same machine via a shared message bus, enabling them to chat, delegate tasks, and collaborate privately without cloud or internet.Last updated7312MIT
- Alicense-qualityDmaintenanceMCP server that enables Claude Code to communicate with other Claude Code agents over HTTP, allowing users to ask questions about remote codebases or delegate coding tasks.Last updatedMIT
- AlicenseAqualityBmaintenanceMCP server that lets any agent or MCP host delegate tasks to the Cursor CLI agent for fast, headless execution. Supports task delegation, project discovery, file analysis, and follow-up sessions.Last updated3172MIT
- AlicenseAqualityBmaintenanceLocal MCP server that exposes delegation tools for Codex, Claude, and Antigravity CLI, enabling an orchestrator agent to assign tasks to these sub-agents via non-interactive CLI commands.Last updated3MIT
Related MCP Connectors
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/manishiitg/llm-provider-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server