How to Add Google News to Claude Code

Claude Code is Anthropic’s CLI coding agent. It’s great for code tasks, but it’s also useful for research during development — looking up library changelogs, checking what’s happening in a space you’re building in, or pulling context on a topic before writing something. Adding Google News access through AgentPatch makes that research seamless.

Why This Matters

When you’re deep in a project and need current information — what’s the latest on a dependency, what are people saying about a particular approach — context switching to a browser adds friction. With AgentPatch connected, Claude Code can pull recent news results directly as part of any session.

This is about adding a capability, not about writing news-fetching code. The agent uses the tool when it’s relevant; you just need to connect it once.

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.

Example

You’re working on a fintech project and you ask Claude Code:

“Before we implement the Stripe webhook handler, what are the most recent news stories about Stripe outages or API changes?”

Claude Code calls the Google News tool through AgentPatch, retrieves recent articles, and summarizes relevant context before proceeding with the implementation. It didn’t need you to paste in any links or set up a separate search integration.

Another common case — you’re writing a README for an open-source tool and ask:

“What’s the current developer sentiment around WebAssembly? Pull some recent coverage.”

Claude Code fetches current news and uses it to inform the framing of your docs. Useful context, no browser required.

Wrapping Up

Connecting AgentPatch gives Claude Code access to Google News and every other tool on the marketplace through a single MCP integration. Head to agentpatch.ai to get your API key.