Connect AI assistants to JustSerpAPI via MCP: discover endpoints, inspect schemas, call APIs, paginate results, and check usage or credits.
Setup
Choose your client, copy the config, then fill in any required environment variables.
Local
claude mcp add justserpapi --env JUSTSERPAPI_API_KEY='<JUSTSERPAPI_API_KEY>' -- npx -y justserpapi-mcp~/.codex/config.toml
[mcp_servers.justserpapi]
command = "npx"
args = ["-y", "justserpapi-mcp"]
env = { JUSTSERPAPI_API_KEY = "<JUSTSERPAPI_API_KEY>" }
# codex mcp add justserpapi --env JUSTSERPAPI_API_KEY='<JUSTSERPAPI_API_KEY>' -- npx -y justserpapi-mcp~/.cursor/mcp.json
{
"mcpServers": {
"justserpapi": {
"command": "npx",
"args": [
"-y",
"justserpapi-mcp"
],
"env": {
"JUSTSERPAPI_API_KEY": "<JUSTSERPAPI_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"justserpapi": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"justserpapi-mcp"
],
"env": {
"JUSTSERPAPI_API_KEY": "<JUSTSERPAPI_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"justserpapi": {
"command": "npx",
"args": [
"-y",
"justserpapi-mcp"
],
"env": {
"JUSTSERPAPI_API_KEY": "<JUSTSERPAPI_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"justserpapi": {
"command": "npx",
"args": [
"-y",
"justserpapi-mcp"
],
"env": {
"JUSTSERPAPI_API_KEY": "<JUSTSERPAPI_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"justserpapi": {
"command": "npx",
"args": [
"-y",
"justserpapi-mcp"
],
"env": {
"JUSTSERPAPI_API_KEY": "<JUSTSERPAPI_API_KEY>"
}
}
}
}Remote
claude mcp add --transport http justserpapi https://mcp.justserpapi.com/mcp~/.codex/config.toml
[mcp_servers.justserpapi]
url = "https://mcp.justserpapi.com/mcp"
# codex mcp add justserpapi --url https://mcp.justserpapi.com/mcp~/.cursor/mcp.json
{
"mcpServers": {
"justserpapi": {
"url": "https://mcp.justserpapi.com/mcp"
}
}
}.vscode/mcp.json
{
"servers": {
"justserpapi": {
"type": "http",
"url": "https://mcp.justserpapi.com/mcp"
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"justserpapi": {
"httpUrl": "https://mcp.justserpapi.com/mcp"
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"justserpapi": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.justserpapi.com/mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"justserpapi": {
"url": "https://mcp.justserpapi.com/mcp"
}
}
}Environment variables
JUSTSERPAPI_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.