nextbillion-mcp
OfficialProvides tools for interacting with NextBillion.ai location APIs, enabling geocoding, place search, routing, distance matrices, isochrones, and static maps.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@nextbillion-mcpGet driving directions from Seattle to Portland"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
nextbillion-mcp
MCP server exposing NextBillion.ai location APIs as tools for AI agents: geocoding, place search, routing, distance matrices, isochrones, and static maps.
Implements the MCP 2026-07-28 specification (stateless core) via the official TypeScript SDK v2; older-protocol clients are served through the SDK's built-in legacy negotiation.
Quick start
Get an API key at console.nextbillion.ai and export it as
NBAI_API_KEY in your shell profile.
Claude Code plugin (this repository doubles as a plugin marketplace):
claude plugin marketplace add nextbillion-ai/nextbillion-mcp
claude plugin install nextbillion-mcp@nextbillionAny MCP client — snippets for Claude Code, Cursor, and Codex are in
distributions/manual/README.md. The short version:
NBAI_API_KEY=<your key> npm_config_audit=false npx -y nextbillion-mcp(The Claude Code plugin runs a bundled copy of the server directly — no npx, no network at
startup. For npx-based setups, npm_config_audit=false skips npm's post-install audit call,
which hangs on some networks; see distributions/manual/README.md.)
Related MCP server: Mapbox MCP Server
Tools
Tool | NextBillion API |
| Autocomplete (prefix address completion) |
| Autosuggest (typo-tolerant suggestions) |
| Directions (fast + flexible) |
| Distance Matrix (fast + flexible, synchronous) |
| Batch Geocode (up to 100 queries per call) |
| Forward Geocode |
| Reverse Geocode |
| Structured Geocode |
| Isochrone |
| Browse (places by category near a location) |
| Place Lookup |
| Discover (POI search) |
| Geocode Postcode |
| Search Along Route |
| Static Images |
| Static Images (route/path overlay) |
Tool inputs always use explicit {latitude, longitude} objects; the server handles the
underlying API's coordinate-order conventions internally.
Repository layout
packages/server/— protocol layer: the MCP server published to npm asnextbillion-mcp.src/core/— server assembly (spec compliance, error mapping)src/tools/— one file per tool, grouped by product (places / routing / maps)src/nbclient/— shared NextBillion HTTP client (auth, timeout, retry, key redaction)src/transports/— (stdio is served via the SDK entry; HTTP transport lands here later)
distributions/— distribution layer: zero-logic install packaging per client (Claude Code plugin, Codex plugin bundle, Cursor snippet, manual configuration).deploy/— placeholder for the future hosted (Streamable HTTP) deployment.
Development
npm install
npm run typecheck
npm test # unit + protocol conformance (no network, no key needed)
npm run build # bundles the server into a single zero-dependency dist/index.js
NBAI_API_KEY=<key> npm run test:e2e # live-API smoke testsTest a local build interactively with the MCP Inspector:
NBAI_API_KEY=<key> npx @modelcontextprotocol/inspector node packages/server/dist/index.jsThis server cannot be deployed
Maintenance
Related MCP Connectors
- geoOAuthco.thinair
Geocoding, routing, isochrones, traffic, weather, and place search for AI agents. 19 MCP tools.
Pay-per-use tool marketplace for AI agents. Search, price-check, and call APIs via MCP.
Geoapify MCP — wraps the Geoapify Location Platform (geoapify.com)
Live Google Maps business search, review, and photo data for AI agents over MCP.
Related MCP Servers
- AlicenseAqualityCmaintenanceProduction-ready MCP server for Google Maps Platform APIs, providing 11 tools for directions, places, geocoding, traffic, and road data to empower AI agents with location intelligence.114Apache 2.0

Mapbox MCP Serverofficial
AlicenseAqualityAmaintenanceProvides geospatial intelligence to AI agents through Mapbox APIs, enabling geocoding, routing, POI search, map images, and offline spatial calculations.281,055 npm354MIT- AlicenseNot gradedqualityCmaintenanceProvides geolocation, routing, and navigation tools including geocoding, place search, distance matrix, and turn-by-turn directions via NextBillion.ai APIs.61 npm1MIT

Magic Lane MCP Serverofficial
AlicenseBqualityBmaintenanceEnables AI agents to become geospatially intelligent assistants with tools for location search, smart routing, round trip planning, reverse geocoding, isochrone analysis, route visualization, geofence management, and interactive map display.821 npm7Apache 2.0