IPinfo API MCP Server
Setup
Choose your client, copy the config, then fill in any required environment variables.
Local
claude mcp add ipinfo --env IPINFO_TOKEN='<IPINFO_TOKEN>' -- uvx ipinfo-mcp-server~/.codex/config.toml
[mcp_servers.ipinfo]
command = "uvx"
args = ["ipinfo-mcp-server"]
env = { IPINFO_TOKEN = "<IPINFO_TOKEN>" }
# codex mcp add ipinfo --env IPINFO_TOKEN='<IPINFO_TOKEN>' -- uvx ipinfo-mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"ipinfo": {
"command": "uvx",
"args": [
"ipinfo-mcp-server"
],
"env": {
"IPINFO_TOKEN": "<IPINFO_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"ipinfo": {
"type": "stdio",
"command": "uvx",
"args": [
"ipinfo-mcp-server"
],
"env": {
"IPINFO_TOKEN": "<IPINFO_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"ipinfo": {
"command": "uvx",
"args": [
"ipinfo-mcp-server"
],
"env": {
"IPINFO_TOKEN": "<IPINFO_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"ipinfo": {
"command": "uvx",
"args": [
"ipinfo-mcp-server"
],
"env": {
"IPINFO_TOKEN": "<IPINFO_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"ipinfo": {
"command": "uvx",
"args": [
"ipinfo-mcp-server"
],
"env": {
"IPINFO_TOKEN": "<IPINFO_TOKEN>"
}
}
}
}Remote
claude mcp add --transport http ipinfo https://mcp.ipinfo.io/ --header 'Authorization: Bearer <IPINFO_TOKEN>'~/.codex/config.toml
[mcp_servers.ipinfo]
url = "https://mcp.ipinfo.io/"
bearer_token_env_var = "IPINFO_TOKEN"
# codex mcp add ipinfo --url https://mcp.ipinfo.io/ --bearer-token-env-var IPINFO_TOKEN
# export IPINFO_TOKEN=<IPINFO_TOKEN>~/.cursor/mcp.json
{
"mcpServers": {
"ipinfo": {
"url": "https://mcp.ipinfo.io/",
"headers": {
"Authorization": "Bearer <IPINFO_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"ipinfo": {
"type": "http",
"url": "https://mcp.ipinfo.io/",
"headers": {
"Authorization": "Bearer <IPINFO_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"ipinfo": {
"httpUrl": "https://mcp.ipinfo.io/",
"headers": {
"Authorization": "Bearer <IPINFO_TOKEN>"
}
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"ipinfo": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.ipinfo.io/",
"--header",
"Authorization:${AUTH_HEADER}"
],
"env": {
"AUTH_HEADER": "Bearer <IPINFO_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"ipinfo": {
"url": "https://mcp.ipinfo.io/",
"headers": {
"Authorization": "Bearer <IPINFO_TOKEN>"
}
}
}
}Environment variables
IPINFO_TOKEN
Replace the placeholders with your own credentials and keep them out of version control.