Skip to content

ipinfo/mcp

Repository files navigation

IPinfo MCP Server

IPinfo API MCP Server for Residential Proxy, Lite, Core, and Plus bundles.

Development

Prerequisites

  • Python 3.14+
  • uv

Setup

uv sync --dev
cp .env.example .env
# Add your IPinfo token to .env

Get a free API token at ipinfo.io/signup.

Running the server

The server supports two transports: stdio (default) and HTTP.

# stdio (default, used by MCP clients)
uv run ipinfo-mcp-server

# HTTP
IPINFO_TRANSPORT=http IPINFO_HOST=0.0.0.0 IPINFO_PORT=8000 uv run ipinfo-mcp-server

Environment variables

Variable Default Description
IPINFO_TOKEN API token
IPINFO_API_BASE_URL https://api.ipinfo.io API base URL
IPINFO_TRANSPORT stdio Transport type (stdio or http)
IPINFO_HOST 0.0.0.0 HTTP host (only for http transport)
IPINFO_PORT 8000 HTTP port (only for http transport)

Tests

# All tests tests
uv run pytest

# Integration tests (requires IPINFO_TOKEN)
uv run pytest tests/integration/

Integration tests hit the real IPinfo API and validate response structure only (no exact value assertions). They require IPINFO_TOKEN to be set and are skipped otherwise.

Type checking

uv run pyright

Linting

uv run ruff check .
uv run ruff format .

About

IPinfo API MCP Server

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors