How to Connect Cursor AI to AgentPatch
Cursor is one of the most popular AI coding editors. It has strong built-in AI features for code generation, editing, and 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
- Cursor installed and working (cursor.com)
- An AgentPatch API key — sign up at agentpatch.ai and grab your key from the dashboard
Setup
- Open Cursor Settings (Cmd+Shift+J on Mac, Ctrl+Shift+J on Windows/Linux).
- Navigate to the MCP section in the sidebar.
- Click Add new global MCP server.
- Cursor opens
~/.cursor/mcp.json. Add the AgentPatch server config:
{
"mcpServers": {
"agentpatch": {
"url": "https://agentpatch.ai/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
- Replace
YOUR_API_KEYwith your actual key from the AgentPatch dashboard. - Save and restart Cursor. It discovers all AgentPatch tools automatically.
Verify It Works
Try this prompt in Cursor’s AI chat to confirm everything is connected:
“Search for the latest Tailwind CSS release and summarize what’s new.”
If Cursor returns search results, you’re all set.
Available Tools
Once connected, Cursor’s AI agent 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 implementing a WebSocket connection and can’t remember the correct reconnection pattern. Instead of switching to a browser:
“Search for current best practices for WebSocket reconnection with exponential backoff in JavaScript.”
Cursor searches Google through AgentPatch, reads the results, and applies the pattern to your code. The search uses current data, not stale training data.
Or you’re building a landing page and need a hero image:
“Generate an abstract gradient image in blue and purple tones, 1920x1080, suitable for a SaaS landing page header.”
The agent calls the image generation tool and saves the result to your project. No context switch to a design tool.
Wrapping Up
One config file is all it takes. Cursor’s AI handles code well, and AgentPatch extends it into research, communication, and content generation. Get your API key at agentpatch.ai.