Claude Code Extensions: How to Add Tools, MCP Servers, and Hooks in 2026
Claude Code ships with strong defaults. It reads files, writes code, runs shell commands, and handles git. But those defaults define a ceiling. Extensions push that ceiling higher, turning a coding assistant into a general-purpose agent.
What “Claude Code Extensions” Means
The term covers three categories:
MCP servers. These are external tool servers that Claude Code connects to over the Model Context Protocol. Each server exposes one or more tools (web search, image generation, email, data lookups) that Claude Code discovers and calls on its own. You add an MCP server with a single command, and the tools appear in your session.
Custom slash commands. You can define project-specific commands by placing Markdown files in a .claude/commands/ directory. Each file becomes a slash command that Claude Code can execute. Good for repeatable workflows: running test suites, generating boilerplate, deploying to staging.
Hooks. These are shell commands that run at specific lifecycle points: before a tool call, after a tool call, or when a notification fires. Hooks let you enforce guardrails (block certain file edits), add logging, or trigger side effects without modifying Claude Code itself.
Why Extensions Matter
Without extensions, Claude Code operates in a local bubble. It can’t check if a library’s latest version introduced a breaking change. It can’t look up a business address. It can’t send a summary email to your team after finishing a task.
Extensions break the bubble. A well-configured Claude Code session can:
- Search the web for current documentation
- Generate images for mockups or diagrams
- Send and receive email
- Pull data from Google Trends, arXiv, or government datasets
- Read PDFs from URLs
- Search Craigslist, Google Maps, or YouTube
Each of these capabilities comes from an MCP server providing the right tools.
Common Extension Categories
Search and research: Google search, Google News, Google Suggest, arXiv search. These let Claude Code answer questions that require current information.
Media: Image generation (Recraft), YouTube transcript extraction, PDF text extraction. These handle content that a text-only model can’t process natively.
Communication: Email send and receive. Useful for agents that need to notify people or respond to inbound messages.
Data: Google Trends, FRED economic data, BLS employment data, Census data, trade/tariff data. These connect Claude Code to structured datasets.
Local tools: Screenshot capture, clipboard access, file system watchers. These extend what Claude Code can do on your machine.
The Setup Problem
Each MCP server requires its own connection. If you want search, email, image generation, and PDF reading, that’s four separate servers to configure and maintain. Some require API keys. Some need local processes running. The configuration adds up.
This is where a marketplace approach saves time.
Setup
AgentPatch bundles 25+ tools behind a single MCP connection. Instead of configuring individual servers, you connect once and get access to web search, image generation, email, Google Trends, PDF extraction, and more.
Connect AgentPatch to your AI agent to get access to the tools:
Claude Code
claude mcp add -s user --transport http agentpatch https://agentpatch.ai/mcp \
--header "Authorization: Bearer YOUR_API_KEY"
OpenClaw
Add AgentPatch to ~/.openclaw/openclaw.json:
{
"mcp": {
"servers": {
"agentpatch": {
"transport": "streamable-http",
"url": "https://agentpatch.ai/mcp"
}
}
}
}
Get your API key at agentpatch.ai.
What You Can Do After Setup
With AgentPatch connected, try prompts like:
- “Search for the latest release notes for React 20 and summarize the breaking changes.”
- “Generate an illustration of a microservices architecture for my README.”
- “Check Google Trends for interest in ‘claude code extensions’ over the past 12 months.”
- “Extract the text from this PDF and summarize the key findings.”
Claude Code calls the right tools, gathers the information, and gives you a coherent response. No tab switching, no copy-pasting.
Wrapping Up
Claude Code extensions turn a capable coding agent into something broader. MCP servers add external tools, custom commands add project-specific workflows, and hooks add lifecycle automation. If you want the tools without the configuration overhead, AgentPatch gives you 25+ tools through a single connection. Visit agentpatch.ai to get started.