Cursor Integration with Google Search MCP

You are using Cursor to write an OAuth integration, and suddenly you can't remember whether the state parameter is required or optional. In the past, you would Cmd+Tab to switch to the browser, open Google, search, go through several links, find the answer, and then switch back.

Now you don't have to. Just say one sentence in Cursor's AI panel:

Search for best practices for the state parameter in the OAuth 2.0 authorization code flow

Serp MCP will call Google Search in real time, return the results in a structured format to the AI, and the AI will then provide suggestions based on your code context. Throughout the entire process, you don't need to take your hands off the editor.

Get an API Token

Before using the Serp MCP Server, you need an API Token from Ace Data Cloud. The process is very simple:

  1. Open the Ace Data Cloud platform, which supports signing in with GitHub, Google, or WeChat. You will automatically receive free credits after registration.
  2. After logging in, you can see your API Token directly on the homepage. Click the copy button to get it.

Get Ace Data Cloud API Key

  1. If your credits run out, you can go to the console to recharge. Alipay, WeChat, and Stripe are supported.

One token can be used with all MCP Servers, so you don't need to apply separately for each service.

Configure Cursor

Create .cursor/mcp.json in the project root directory:

{
  "mcpServers": {
    "serp": {
      "type": "http",
      "url": "https://serp.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer 你的Token"
      }
    }
  }
}

Replace 你的Token with the API Token you copied in the previous step. Save it and restart Cursor to start using it.

Real Development Scenarios

When debugging an error

Search how to solve Python asyncio "RuntimeError: This event loop is already running"

After searching, the AI will directly tell you the solution and can also compare it with your code to point out exactly which line needs to be changed.

When choosing technologies

Search for a comparison of RabbitMQ vs Kafka in event-driven architectures between microservices, the latest from 2024

Search supports filtering by time, so you can view only the most recent results.

Finding competitors and design inspiration

Search Google Images for some design references for SaaS product pricing pages, minimalist style

Serp supports multiple search types, including web, images, news, and videos.

Complete Tool List

Tool Description
serp_google_search Google Search (web/images/news/videos, etc.)

You can specify the country, language, and time range, such as viewing only English results from the past week.

Configuration for Other Editors

  • VS Code — Add the same configuration under servers in .vscode/mcp.json
  • Claude Code — Configure it through the terminal command line. See Claude Code + Google Search MCP Tutorial
  • Windsurf.windsurf/mcp.json, with the same format as Cursor