Getting Started with Claude Code and AgentPatch MCP Tools
Claude Code is Anthropic’s CLI coding agent. It’s excellent at writing and editing code, and it already has built-in web search. AgentPatch extends it further — connect once, and Claude Code also gains access to image generation, email, Google Maps, Google Trends, YouTube transcripts, and more from a single tool marketplace.
What You’ll Need
- Claude Code installed and working (claude.ai/download)
- An AgentPatch API key — sign up at agentpatch.ai and grab your key from the dashboard
Setup
The AgentPatch CLI is designed for AI agents to use via shell access. Install it, and your agent can discover and invoke any tool on the marketplace.
Install (zero dependencies, Python 3.10+):
pip install agentpatch
Set your API key:
export AGENTPATCH_API_KEY=your_api_key
Example commands your agent will use:
ap search "web search"
ap run google-search --input '{"query": "test"}'
Get your API key from the AgentPatch dashboard.
Skill (Recommended)
Install the AgentPatch skill — it teaches Claude Code when to use AgentPatch and how to use the CLI:
/plugin marketplace add fullthom/agentpatch-claude-skill
/plugin install agentpatch@agentpatch
MCP Server (Alternative)
If you prefer raw MCP tool access instead of the skill:
claude mcp add -s user --transport http agentpatch https://agentpatch.ai/mcp \
--header "Authorization: Bearer YOUR_API_KEY"
Replace YOUR_API_KEY with your actual key from the AgentPatch dashboard.
Verify It Works
Try this prompt in Claude Code to confirm everything is connected:
“Search for the latest release notes for React and summarize what changed.”
If Claude Code returns search results, you’re all set.
Available Tools
Once connected, Claude Code can call any tool on the AgentPatch marketplace. The current lineup includes:
- Google Search and Bing Search — search the web for docs, error messages, articles, or anything else
- Google News — find recent news about technologies, companies, or topics
- Google Maps — look up addresses, business listings, and location data
- Google Trends — check search interest data for keywords and topics
- Image Generation — generate images from text descriptions using Recraft
- Email — send emails with research results, summaries, or notifications
- YouTube Transcripts — pull transcripts from YouTube videos for reference
New tools are added to the marketplace and become available automatically — no config changes needed.
Example
You’re evaluating a dependency and want to check its current docs. You ask Claude Code:
“Search for the Zod validation library documentation and summarize how to define a nested object schema.”
Claude Code calls the Google Search tool through AgentPatch, retrieves current results, and gives you a summary without opening a browser.
Or you’re writing a README and want a quick diagram:
“Generate a simple illustration of a client-server architecture for the README.”
Claude Code calls the Recraft image generation tool through AgentPatch and produces the image. No Recraft account needed on your end.
Wrapping Up
Adding AgentPatch to Claude Code is a one-time setup that gives you access to the full tool marketplace going forward. Visit agentpatch.ai to get your key and see all available tools.