Skip to main content
Web search MCP provides the web_search tool, helping AI tools access information on the web during coding.

Tool description

Performs web searches based on search queries, returning search results and related suggestions.

Prerequisites

1

Get your M Plan API key

Use your M Plan API key.
2

Install uvx

For other installation methods, refer to the uv repository.
3

Verify installation

If installed correctly, a path will be shown (e.g., /usr/local/bin/uvx). If you get spawn uvx ENOENT error, you need to configure the absolute path.

Use in Claude Code

1

Download Claude Code

Download and install Claude Code from Claude Code website.
2

Configure MCP

Replace api_key with your M Plan API key, then run the following command in your terminal:
3

Verify configuration

In Claude Code, run /mcp. If you can see web_search, the configuration is successful.

Use in Cursor

1

Download Cursor

Download and install Cursor from Cursor website.
2

Open MCP configuration

Open Customize -> MCPs, then click New to create an MCP server.Create an MCP server in Cursor
3

Add configuration

Add the following MCP configuration to mcp.json, replacing Enter your M Plan API key with your M Plan API key:

Use in OpenCode

1

Download OpenCode

Download and install OpenCode from OpenCode website.
2

Configure MCP

Add the following MCP configuration to ~/.config/opencode/opencode.json, replacing the MINIMAX_API_KEY placeholder value with your M Plan API key:
3

Verify configuration

In OpenCode, run /mcp. If you can see MiniMax connected, the configuration is successful.