Choose your client
ReplaceYOUR_LANGSEARCH_API_KEY before connecting. Merge the configuration into the existing file rather than replacing other servers. For Codex, keep the key available in the environment where you launch the client.
Codex
Codex
Terminal
Claude Code
Claude Code
Terminal
Cursor
Cursor
.cursor/mcp.json
VS Code
VS Code
MCP: Open User Configuration, or workspace .vscode/mcp.json
Gemini CLI
Gemini CLI
.gemini/settings.json
OpenCode
OpenCode
opencode.json
Windsurf
Windsurf
~/.codeium/mcp_config.json
Cline
Cline
MCP Servers → Configure MCP Servers
Roo Code
Roo Code
.roo/mcp.json
Zed
Zed
Zed settings.json
Verify the connection
- Save the configuration or run the command in your installed client.
- Start or reload the LangSearch MCP connection and complete any client trust prompt.
- Check that the client lists the server’s tools.
- Ask your agent to search the web for a specific topic and include source links.
Troubleshooting
- Unauthorized: check the API key and the
Authorization: Bearer ...header. - No tools listed: confirm the endpoint ends in
/mcp, then restart the connection and inspect the client log. - Rate limited: check account usage. Creating another connection does not create another allowance.
servers, Cursor uses mcpServers, and other clients may use different fields. Keep the format for your selected client.
Prefer installation instructions for your agent? Use the Agent Skill.
