How to Connect Claude Code to AgentPatch
Claude Code is Anthropic’s terminal-based coding agent. It’s powerful for writing and editing code, and it already has built-in web search. AgentPatch extends it further through MCP — one config entry, and your agent 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
Install the AgentPatch CLI (zero dependencies, Python 3.10+):
pip install agentpatch
Set your API key:
export AGENTPATCH_API_KEY=your_api_key
Then use it:
ap search "web search"
ap run agentpatch google-search --input '{"query": "test"}'
Get your API key from the AgentPatch dashboard.
Run this command to add AgentPatch as an MCP server:
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. Claude Code discovers all AgentPatch tools automatically.
Verify It Works
Try this prompt in Claude Code to confirm everything is connected:
“Search for the latest release notes for Astro 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 working on a project that involves location data. You ask Claude Code:
“Find me the address and opening hours for the Apple Store in San Francisco’s Union Square.”
Claude Code calls the Google Maps tool through AgentPatch and returns the details directly in your terminal. No Google Maps API key needed on your side, no browser tab opened.
Wrapping Up
One command is all it takes. From that point forward, Claude Code has access to every tool on the AgentPatch marketplace. Visit agentpatch.ai to get your key and see what’s available.