Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

An MCP server that wraps the Claude Agent SDK, enabling Claude-powered queries, coding tasks, web search, and customizable agent execution using OAuth without an API key.

README.md

claude-agent-mcp

An MCP (Model Context Protocol) server that wraps the Claude Agent SDK. It uses Claude Code's built-in OAuth authentication, so no API key is required — just claude login and you're ready to go.

Features

| Tool | Description | |------|-------------| | claude_query | General-purpose queries — uses Claude's reasoning without any tools | | claude_code_task | Coding tasks with file system access (read/write/edit/search) | | claude_web_search | Web search with result summarization | | claude_multi_turn | Fully customizable agent execution — configure tools, permissions, budget, and more |

Prerequisites

Installation

git clone https://github.com/j-token/claude-agent-mcp.git
cd claude-agent-mcp
bun install

Usage

Run directly

bun start

Add to Claude Code as an MCP server

Add the following to your Claude Code MCP settings (~/.claude/settings.json):

{
  "mcpServers": {
    "claude-agent": {
      "command": "bun",
      "args": ["run", "/path/to/claude-agent-mcp/src/index.ts"]
    }
  }
}

Add to Claude Desktop

Add to your Claude Desktop config (claude_desktop_config.json):

{
  "mcpServers": {
    "claude-agent": {
      "command": "bun",
      "args": ["run", "/path/to/claude-agent-mcp/src/index.ts"]
    }
  }
}

Tools

claude_query

Send a prompt to Claude without any tools. Best for reasoning, text generation, and Q&A.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | prompt | string | Yes | The prompt to send | | systemPrompt | string | No | System prompt | | model | string | No | Model to use (e.g., claude-sonnet-4-6) | | maxTurns | number | No | Max conversation turns (default: 3) |

claude_code_task

Perform coding tasks with file system access. Can read, write, edit, and search files.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | prompt | string | Yes | Description of the coding task | | cwd | string | No | Working directory (absolute path) | | permissionMode | string | No | plan (default), acceptEdits, or bypassPermissions | | allowedTools | string[] | No | Tools to allow (default: Read, Edit, Write, Glob, Grep, Bash) | | model | string | No | Model to use | | maxTurns | number | No | Max turns (default: 10) |

claude_web_search

Search the web and get a summarized result.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | searchQuery | string | Yes | What to search for | | model | string | No | Model to use | | maxTurns | number | No | Max turns (default: 5) |

claude_multi_turn

Fully customizable agent execution. Configure every aspect of the agent run.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | prompt | string | Yes | The prompt | | systemPrompt | string | No | System prompt | | allowedTools | string[] | No | Tools to allow | | permissionMode | string | No | default, acceptEdits, plan, or bypassPermissions | | cwd | string | No | Working directory | | model | string | No | Model to use | | maxTurns | number | No | Max conversation turns | | maxBudgetUsd | number | No | Max budget in USD |

How It Works

┌─────────────┐     stdio      ┌───────────────────┐     OAuth     ┌─────────────┐
│  MCP Client │ ◄────────────► │ claude-agent-mcp  │ ◄───────────► │  Claude API  │
│ (Claude Code │                │  (this server)    │               │             │
│  / Desktop)  │                └───────────────────┘               └─────────────┘
└─────────────┘
  1. An MCP client (Claude Code, Claude Desktop, etc.) connects to this server via stdio.
  2. The client calls one of the registered tools (claude_query, claude_code_task, etc.).
  3. This server delegates the request to the Claude Agent SDK, which uses your existing OAuth session.
  4. The response is streamed back and returned to the client.

Development

# Type-check
bun run typecheck

# Build
bun run build

License

MIT

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Search servers.