Search and webpage scraping through the Serper API, supporting its full parameter set including location.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add serper --env SERPER_API_KEY='<SERPER_API_KEY>' -- npx -y @smithery/cli install @marcopesani/mcp-server-serper --client claude~/.codex/config.toml
[mcp_servers.serper]
command = "npx"
args = ["-y", "@smithery/cli", "install", "@marcopesani/mcp-server-serper", "--client", "claude"]
env = { SERPER_API_KEY = "<SERPER_API_KEY>" }
# codex mcp add serper --env SERPER_API_KEY='<SERPER_API_KEY>' -- npx -y @smithery/cli install @marcopesani/mcp-server-serper --client claude~/.cursor/mcp.json
{
"mcpServers": {
"serper": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@marcopesani/mcp-server-serper",
"--client",
"claude"
],
"env": {
"SERPER_API_KEY": "<SERPER_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"serper": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@marcopesani/mcp-server-serper",
"--client",
"claude"
],
"env": {
"SERPER_API_KEY": "<SERPER_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"serper": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@marcopesani/mcp-server-serper",
"--client",
"claude"
],
"env": {
"SERPER_API_KEY": "<SERPER_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"serper": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@marcopesani/mcp-server-serper",
"--client",
"claude"
],
"env": {
"SERPER_API_KEY": "<SERPER_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"serper": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@marcopesani/mcp-server-serper",
"--client",
"claude"
],
"env": {
"SERPER_API_KEY": "<SERPER_API_KEY>"
}
}
}
}Environment variables
SERPER_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.