About Rocky Geo Mcp
Rocky Geo Mcp wraps the RockyGeo IP geolocation API hosted on RapidAPI as an MCP server. It is for MCP-compatible clients that need IPv4 or IPv6 lookups, with tools for individual and batch queries as well as health checks.
Key features
- 01Geolocate a single IP address
- 02Batch lookup 1 to 100 IPs
- 03Check service status and data version
- 04Configure the RapidAPI key and API URL
Use cases
- 01Look up the location of an IPv4 or IPv6 address
- 02Process multiple IP geolocation queries
- 03Check the RockyGeo API's operational status
MCP support
The MCP server exposes the `lookup_ip`, `lookup_ips_batch`, and `health_check` tools, calling the RockyGeo API through RapidAPI.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMErockygeo-mcp
MCP (Model Context Protocol) server that wraps the RockyGeo IP geolocation API hosted on RapidAPI. Lets MCP-compatible clients (Claude Desktop, Claude Code, etc.) perform IPv4/IPv6 geolocation lookups via tool calls.
Install
npm install
npm run build
Configure
| Variable | Default | Notes |
|---|---|---|
RAPIDAPI_KEY | (required) | Sent as x-rapidapi-key. Override with --api-key <k>. |
ROCKYGEO_BASE_URL | https://rocky-geo.p.rapidapi.com/v1 | Point at a different Rocky Geo API provider. |
ROCKYGEO_RAPIDAPI_HOST | parsed from base URL | Sent as x-rapidapi-host for *.rapidapi.com hosts. |
MCP client setup
Add to your client config (Claude Code ~/.claude.json, Claude Desktop claude_desktop_config.json, etc.):
{
"mcpServers": {
"rockygeo": {
"command": "node",
"args": ["/Users/cyborg97/rockygeomcp/dist/index.js"],
"env": { "RAPIDAPI_KEY": "<your-key>" }
}
}
}
Tools
lookup_ip—{ ip: string }→ geolocation for one IP. Private/reserved IPs return{ found: false }.lookup_ips_batch—{ ips: string[] }(1–100) →{ results: { [ip]: ... } }.health_check—{}→{ status, dataVersion, lastSyncAt, uptime }.
Smoke test with the inspector
RAPIDAPI_KEY=<key> npx @modelcontextprotocol/inspector node dist/index.js
Then in the inspector UI: list tools, run lookup_ip with { "ip": "8.8.8.8" }.
Integration tests
End-to-end tests in tests/integration.test.js spawn the built server as a child
process and exercise every tool over the real MCP stdio transport, hitting the
live RockyGeo API.
npm test
If RAPIDAPI_KEY is not in the environment, the runner prompts for it (input is
hidden). The runner also auto-builds dist/ if it is missing.
Note: tests hit the real upstream API, so they consume RapidAPI quota and may be rate-limited on the Free plan (1 RPS).
License
MIT.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.