Lets agents run Google searches through SearchAPI and get the results.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add searchapi --env SEARCHAPI_API_KEY='<SEARCHAPI_API_KEY>' -- uv run --with 'mcp[cli]' /path/to/searchAPI-mcp/mcp_server.py~/.codex/config.toml
[mcp_servers.searchapi]
command = "uv"
args = ["run", "--with", "mcp[cli]", "/path/to/searchAPI-mcp/mcp_server.py"]
env = { SEARCHAPI_API_KEY = "<SEARCHAPI_API_KEY>" }
# codex mcp add searchapi --env SEARCHAPI_API_KEY='<SEARCHAPI_API_KEY>' -- uv run --with 'mcp[cli]' /path/to/searchAPI-mcp/mcp_server.py~/.cursor/mcp.json
{
"mcpServers": {
"searchapi": {
"command": "uv",
"args": [
"run",
"--with",
"mcp[cli]",
"/path/to/searchAPI-mcp/mcp_server.py"
],
"env": {
"SEARCHAPI_API_KEY": "<SEARCHAPI_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"searchapi": {
"type": "stdio",
"command": "uv",
"args": [
"run",
"--with",
"mcp[cli]",
"/path/to/searchAPI-mcp/mcp_server.py"
],
"env": {
"SEARCHAPI_API_KEY": "<SEARCHAPI_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"searchapi": {
"command": "uv",
"args": [
"run",
"--with",
"mcp[cli]",
"/path/to/searchAPI-mcp/mcp_server.py"
],
"env": {
"SEARCHAPI_API_KEY": "<SEARCHAPI_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"searchapi": {
"command": "uv",
"args": [
"run",
"--with",
"mcp[cli]",
"/path/to/searchAPI-mcp/mcp_server.py"
],
"env": {
"SEARCHAPI_API_KEY": "<SEARCHAPI_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"searchapi": {
"command": "uv",
"args": [
"run",
"--with",
"mcp[cli]",
"/path/to/searchAPI-mcp/mcp_server.py"
],
"env": {
"SEARCHAPI_API_KEY": "<SEARCHAPI_API_KEY>"
}
}
}
}Environment variables
SEARCHAPI_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.