MCP servers · yours

camelRun by camelAIcamelRun by camelAI · MCP agents

Build and host an MCP agent

Connect remote HTTP MCP tools, talk to each agent over MCP, or manage your tenant at /mcp.camelRun is a hosted runtime for AI agents with three MCP entry points: plug remote HTTP MCP tools into your agents with signed Ed25519 JWTs or headers, talk to any single agent at /v2/agents/:key/mcp, or manage your whole tenant over OAuth 2.1 at /mcp.

No API key neededOr start in Claude Code, no API keyRead the quickstartQuickstart
claude mcp add --transport http camelrun https://run.camelai.com/mcp

MCP clients · yours

1 · Connect remote MCP tools

Connect remote HTTP MCP servers to your AI agent

Register remote HTTP MCP servers on a slug-keyed definition with PUT /v2/definitions/:slug or on an agent directly. camelRun discovers each server's tools as server__tool, makes every outbound call from the runtime, and keeps credentials out of the model prompt.

const headers = {
  Authorization: `Bearer ${process.env.CAMELRUN_API_KEY}`,
  "Content-Type": "application/json",
};
await fetch("https://run.camelai.com/v2/definitions/support", {
  method: "PUT", headers,
  body: JSON.stringify({
    instructions: "You answer support tickets.",
    mcpServers: [{ name: "app", url: "https://app.example.com/mcp", auth: { type: "runtime" } }],
  }),
});
Saved · Ed25519 auth
Response
200 OK
{
  "slug": "support",
  "config": {
    "instructions": "You answer support tickets.",
    "mcpServers": [{
      "name": "app",
      "url": "https://app.example.com/mcp",
      "auth": { "type": "runtime" }
    }]
  },
  "updatedAt": 1790000000000
}
How camelRun connects to a server
  1. app

    Signed Ed25519 JWTs, zero static keys

    camelRun signs a short-lived Ed25519 JWT on every call carrying tenant, agent, subject (sub), and end-user actor (act). Verify it against /v2/.well-known/jwks.json with no static API keys to rotate.

    "auth": {"type": "runtime"}
  2. kb

    Configured HTTP headers

    Attach bearer tokens or team headers directly to a remote HTTP MCP server. camelRun sends them from the runtime so the model only sees tool names like kb__search.

    "headers": {"Authorization": "Bearer …", "X-Team": "support"}
  3. github

    Per-server tool allowlists

    Expose only the specific remote MCP tools an agent needs, and pair server prefixes like github__* with approvalRequired when a person should sign off first.

    "allowTools": ["create_issue", "search_issues"]
MCP servers in the docs

BM25 tool discovery

Search large MCP catalogs on demand

Enable the codemode built-in so your agent can query connected MCP servers with searchTools() and inspect schemas with describeTool() and describeNamespace(). Large tool catalogs stay out of model context until the agent asks for them.

2 · Talk to one agent via MCP

Turn your AI agent into an MCP server

Every keyed agent on camelRun is an HTTP MCP server at /v2/agents/:key/mcp exposing one tool, message. Add its URL to Claude Code, Cursor, Claude, or any HTTP MCP client that supports OAuth or bearer headers, and everyone shares the agent's durable conversation.

Add the support agent to

https://run.camelai.com/v2/agents/support/mcp

mcp.json
{ "mcpServers": { "support": { "url": "https://run.camelai.com/v2/agents/support/mcp" } } }
  • Progress while it works

    A call lasts as long as the turn, and the agent sends progress notifications for each tool it uses so clients keep waiting.

  • Approvals in the client

    In clients that support MCP elicitation, an approval or question surfaces inline and the answer resumes the run.

  • Idempotent retries

    Send the same text with the same requestId and camelRun deduplicates the turn and returns its reply.

MCP…/v2/agents/support/mcprun.camelai.com/v2/agents/support/mcp
CursorcamelRunsupport
  1. tools/call

    message {"text": "Escalate anything urgent from today."}

  2. notifications/progress

    Using app__list_tickets

  3. notifications/progress

    Using kb__search

  4. progressAsking you: Allow app__escalate_ticket to run?
  5. elicitation/create
    Cursor asks

    Allow app__escalate_ticket to run?

    {"ticket":"T-2207"}
    DeclineAccept
  6. result

    {"action": "accept"}

  7. notifications/progress

    Using app__escalate_ticket

  8. result

    Escalated T-2207. T-2213 is waiting on the customer.

Agents as MCP servers

3 · Manage your tenant via MCP

Deploy AI agents from Claude Code, Codex or Cursor

Connect your coding agent to camelRun's hosted OAuth 2.1 MCP server at https://run.camelai.com/mcp with no API key to paste. Sign in when your client prompts, then create definitions, upsert agents, and run messages straight from your editor.

~/support-app · claude
Add camelRun to your coding agent
  • Claude Code
    claude mcp add --transport http camelrun https://run.camelai.com/mcp
  • Codex
    codex mcp add camelrun --url https://run.camelai.com/mcp && codex mcp login camelrun
  • Cursor
    { "mcpServers": { "camelrun": { "url": "https://run.camelai.com/mcp" } } }
  • REST API
    curl -X PUT https://run.camelai.com/v2/agents/support -H "Authorization: Bearer $CAMELRUN_API_KEY" -d '{"definition":"support"}'
Hosted MCP and quickstart in the docs

FAQ

MCP agent questions

Read the docs
  1. 01What is a MCP agent?

    An MCP agent is an AI agent that calls tools exposed by remote MCP servers. On camelRun, the runtime discovers each server's tools, keeps the agent's history, and attaches runtime-signed JWTs or HTTP headers without exposing keys to the model. Every keyed agent also serves its own MCP endpoint at /v2/agents/:key/mcp.

  2. 02What is the difference between a MCP and an AI agent?

    MCP, the Model Context Protocol, is the standard protocol for exposing tools and context to models over JSON-RPC. An AI agent is the durable loop that calls the model, executes tools, waits on human approvals, and finishes the task. MCP connects tools and clients; camelRun hosts the agent.

  3. 03Which MCP servers can a camelRun agent connect to?

    Any remote MCP server that speaks Streamable HTTP. Configure servers on a slug-keyed definition with PUT /v2/definitions/:slug or on an agent directly, authenticating with configured HTTP headers or auth: { type: "runtime" } for short-lived Ed25519-signed JWTs carrying tenant, agent, subject (sub), and end-user actor (act).

  4. 04Do my MCP server credentials ever reach the model?

    No. camelRun makes every outbound MCP call from the runtime, so the model sees tool names like kb__search and never receives your headers or keys. To avoid storing static API keys in a definition at all, set auth: { type: "runtime" } and verify camelRun's short-lived Ed25519 JWTs against /v2/.well-known/jwks.json.

  5. 05Can I use my camelRun agent from Claude, Cursor or Claude Code?

    Yes. Talk to a single keyed agent at https://run.camelai.com/v2/agents/:key/mcp via its message tool, or connect your coding agent to https://run.camelai.com/mcp with OAuth 2.1 to manage definitions and agents using upsert_definition and upsert_agent. Any HTTP MCP client that supports OAuth or bearer headers works.

  6. 06How is this different from writing my own MCP client?

    With a raw MCP SDK you build the model loop, persist conversation state, handle retries, and keep processes alive yourself. camelRun runs the loop, stores each agent's versioned camelFS workspace, indexes tools with BM25 searchTools() in codemode, and keeps your agents working through your deploys.

  7. 07How much does an MCP agent cost to run?

    $0.05 per active agent-hour while an agent is running. Idle, sleeping, and waiting agents cost $0, and camelFS and history storage is $0 right now. Active Linux container commands (bash) bill $0.00005/sec ($0.18/hr) with free pre-warming. Model tokens cost $0 from camelRun on your own keys, or pass-through on direct providers.