Codex
Use InternetData in Codex, its IDE extension and the ChatGPT desktop app: install the plugin, sign in with your account, and look up addresses as you work.
Codex can look up IP addresses, ASNs and domains, look into any of the InternetData IP databases and tell you which ones your organization holds. It connects to the hosted InternetData MCP server, https://mcp.internetdata.io/mcp, you sign in with your InternetData account, and every tool is read-only.
Codex never sees your API key. When you sign in, you pick one of your organization's keys, and the server makes each request with it on your behalf, so every lookup counts against that key's plan as any API call does. The Codex CLI, its IDE extension and Codex in the ChatGPT desktop app read the same configuration, so one install covers all three.
Before you begin
- Codex, in its CLI, its IDE extension or the ChatGPT desktop app.
- An InternetData account. You don't need a paid plan: on the free plan, your organization's first 1,000 lookups each UTC day return every field, and past them a lookup returns an error that carries the basics, which are an address's country, network, reverse DNS name and Tor and relay flags, an AS's registration and a domain's DNS record types.
- The permission to share your organization's API keys. Approving the connection needs it, and asks you to confirm it's you.
Install the plugin
The InternetData plugin adds the server with skills for looking up addresses, screening a list, looking into a domain or an AS, reading a database's contents, checking its files and downloads, and analyzing a copy. It's in the plugin directory Codex shares with ChatGPT, and it installs from the command line too:
-
Add the marketplace and install the plugin, then sign in:
console codex plugin marketplace add internetdata/openai-plugin codex plugin add internetdata@internetdata codex mcp login internetdata -
The last line opens your browser. Sign in with your InternetData account.
-
Under Use this key:, pick which of your organization's API keys Codex uses, and click Approve.
Once it's connected, ask something like "Where is 8.8.8.8, and whose network is it on?".
Add the server alone
To add the server alone, without the skills:
codex mcp add internetdata --url https://mcp.internetdata.io/mcpCodex opens your browser to sign in as soon as it adds the server. If it doesn't, or you stop it there, codex mcp login internetdata signs you in later.
What the plugin adds
| Skill | What it does |
|---|---|
check-ips | Looks up one address or a list: where each is, whose network, and whether it's a VPN, a proxy, Tor or a hosting provider, and whether a bot uses it. |
review-traffic | Screens an export or a log for anonymized traffic and forged crawlers, keeping each answer next to its record. |
investigate-domain-or-as | Looks into a domain's DNS, ranges and disposable flag, or an AS's operator and prefixes. |
database-files | Answers which databases you hold, how big they are, whether your copy is intact and why a download failed. |
analyze-database | Explains a database's columns and sample rows, and in Codex analyzes a downloaded copy. |
What you can ask
Ask in your own words, and Codex picks the tool that answers. For example:
- "Where is 8.8.8.8, and whose network is it on?"
- "Check these addresses for VPNs, proxies and Tor: 45.83.91.1, 185.220.101.1, 8.8.8.8"
- "Who operates AS15169?"
- "What columns does tor_ip_v1 have? Show me a few sample rows."
- "Our download failed last night. What happened?"
Behind those answers are the server's lookup, plan and database tools, which MCP Server describes one by one.
Database licenses
The database tools need a key with the db.download scope, which your organization's Default key has. Databases are licensed by contract. The Open ones are licensed to every organization from the start and are free under CC BY-SA 4.0. For the rest, see the API documentation or request an evaluation.
Connect with your own key
To send a key yourself instead of signing in, keep it in an environment variable and add the server with --bearer-token-env-var INTERNETDATA_API_KEY. On the OpenAI API, the Responses API's mcp tool takes https://mcp.internetdata.io/mcp as its server_url and the key as its authorization.
Disconnect
To disconnect, run codex mcp logout internetdata, or remove it in the console under Settings > Sessions & devices > Connected applications, where Disconnect ends its access. Access ends within about a minute.
Troubleshoot
| Symptom | What to do |
|---|---|
| The browser doesn't open to sign in. | Run codex mcp login internetdata to sign in. |
| The console says "You do not have permission to share an API key from this organization." | Your role can't share your organization's API keys. Ask an owner for that permission, then sign in again. |
| The console says the key "only accepts certain IP addresses". | The key has Allowed source addresses set, so only someone who can manage API keys can share it. Pick another key, or ask one of them. |
| A key can't be picked, because its secret was never stored. | The key predates retrievable keys. Rotate it in the console, under API > Keys, to get one that can be shared. |
| A lookup returns an error saying your organization's lookups with every field are used up. | Past your organization's first 1,000 lookups of the UTC day on the free plan, or a paid plan's overage cap, each lookup returns that error with the basics, without the company, the abuse contact and the other fields a paid plan answers. They come back at 00:00 UTC on the free plan, or once the cap is raised in Billing. A paid plan answers every field on every lookup. |
| A long list of addresses comes back refused. | Looking up a list in one call needs a key on a paid plan. With a key on the free plan, a short list is looked up one address at a time. |
Next steps
Codex can now look up addresses, ASNs and domains and look into the databases while you work. To connect another MCP client, or to see what each tool answers, read MCP Server. To look things up from your own code, use a programming SDK.