Getting Started with Codex and AgentPatch MCP Tools

OpenAI’s Codex CLI is a terminal-based coding agent that can read your codebase, write and edit files, and run commands. AgentPatch extends what it can do — connect once, and Codex gains access to image generation, email, Google Maps, Google Trends, YouTube transcripts, and more from a single tool marketplace.

What You’ll Need

Setup

Add AgentPatch to ~/.codex/config.toml:

[mcp_servers.agentpatch]
url = "https://agentpatch.ai/mcp"
bearer_token_env_var = "AGENTPATCH_API_KEY"

Then set your API key:

export AGENTPATCH_API_KEY=your_api_key

Replace your_api_key with your actual key from the AgentPatch dashboard. Codex discovers all AgentPatch tools automatically on next start.

Verify It Works

Try this prompt in Codex to confirm everything is connected:

“Search for the latest TypeScript release and tell me what version it is.”

If Codex returns search results, you’re all set.

Available Tools

Once connected, Codex 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 two libraries and want current data. You ask Codex:

“Look up the current npm download stats for lodash vs underscore and tell me which is more popular.”

Codex calls the Google Search tool through AgentPatch, retrieves current data, and reports back. No browser, no copy-pasting.

Or you’re working on a side project that sends automated emails. You ask:

“Send a test email to [email protected] confirming the deployment succeeded.”

Codex uses AgentPatch’s email tool to send it. No SMTP server or transactional email provider to configure.

Wrapping Up

One MCP config entry gets you the full AgentPatch tool marketplace. New tools are added regularly, and Codex picks them up automatically. Visit agentpatch.ai to get started.