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

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 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.