# IP for AI

> IP for AI is an open-source MCP server for ai models and llm tooling. Check whether your exit IP works for ChatGPT, Claude and Gemini from your AI client. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Linux, macOS, Windows
- **Website:** https://ipforai.cc
- **Repository:** https://github.com/xjokerabab/ipforai/tree/HEAD/mcp
- **MCP Registry name:** cc.ipforai/ipforai
- **Categories:** AI models and LLM tooling, developer tools, security
- **Listing updated:** 2026-11-15

## About

The server answers one practical question for people behind proxies or VPNs: what does the network exit look like to AI services? It calls the ipforai.cc service and returns a profile of an IP address, so an assistant can report on connectivity problems without leaving the chat.

The README says each profile covers location, ASN, network type (residential, ISP, datacenter, proxy or Tor), access and routing type, risk level, an environment score and AI service availability, plus a link to the full report. Results describe the network only and are not verdicts on any account, login or subscription.

It runs locally over stdio with Node.js 20.18.1 or later and needs no API key. It honours HTTPS_PROXY, HTTP_PROXY and NO_PROXY so the check goes out through the same path as your AI traffic. The only host it contacts is ipforai.cc.

## Features

- **Check own exit IP:** Profiles the IPv4 and IPv6 exit of the current machine.
- **Look up any IP:** Returns the same profile for an address you supply.
- **Network type detail:** Separates residential, ISP, datacenter, proxy and Tor.
- **Proxy support:** Reads standard proxy environment variables.
- **No API key:** Runs through npx without credentials.

## Good for

- Diagnose why an AI service reports a region error
- Compare IPv4 and IPv6 exits on a dual-stack connection
- Check the risk level of a proxy address before using it
- Confirm a proxy setup routes AI traffic as intended

## Install

### Claude Code (Terminal)

```sh
claude mcp add ipforai -- npx -y ipforai-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "ipforai": {
      "command": "npx",
      "args": [
        "-y",
        "ipforai-mcp"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "ipforai": {
      "command": "npx",
      "args": [
        "-y",
        "ipforai-mcp"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "ipforai": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ipforai-mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "ipforai": {
      "command": "npx",
      "args": [
        "-y",
        "ipforai-mcp"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "ipforai": {
      "command": "npx",
      "args": [
        "-y",
        "ipforai-mcp"
      ]
    }
  }
}
```

## Tools

- `check_my_ip`: Profile of this machine's IPv4 / IPv6 exit
- `lookup_ip`: Profile of a given IPv4 or IPv6 address

## FAQ

### Which tools does it expose?

check_my_ip, which takes no input, and lookup_ip, which takes an IPv4 or IPv6 address.

### Does it need an API key?

No.

### Does it read my machine?

The README says it reads only the proxy environment variables and calls ipforai.cc.

### Does a good score guarantee account access?

No. The results describe the network environment only.

### Is IP for AI free?

Yes. IP for AI is open source, so you can use and self-host it for free.

### How do I add IP for AI to Claude Code?

Run this command in your terminal: claude mcp add ipforai -- npx -y ipforai-mcp

### What are the best alternatives to IP for AI?

The closest alternatives to IP for AI are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/ip-for-ai
