nextbillion-ai

nextbillion-mcp

Community nextbillion-ai
Updated

nextbillion-mcp

MCP server exposing NextBillion.ai location APIs as tools for AIagents: 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 theSDK's built-in legacy negotiation.

Quick start

Get an API key at console.nextbillion.ai and export it asNBAI_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@nextbillion

Any MCP client — snippets for Claude Code, Cursor, and Codex are indistributions/manual/README.md. The short version:

NBAI_API_KEY=<your key> npx -y nextbillion-mcp

Tools

Tool NextBillion API
autocomplete Autocomplete (prefix address completion)
autosuggest Autosuggest (typo-tolerant suggestions)
directions Directions (fast + flexible)
distance_matrix Distance Matrix (fast + flexible, synchronous)
geocode_batch Batch Geocode (up to 100 queries per call)
geocode_forward Forward Geocode
geocode_reverse Reverse Geocode
geocode_structured Structured Geocode
isochrone Isochrone
place_lookup Place Lookup
place_search Discover (POI search)
postcode_lookup Geocode Postcode
search_along_route Search Along Route
static_map_image Static Images
static_route_map Static Images (route/path overlay)

Tool inputs always use explicit {latitude, longitude} objects; the server handles theunderlying API's coordinate-order conventions internally.

Repository layout

  • packages/server/protocol layer: the MCP server published to npm as nextbillion-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
NBAI_API_KEY=<key> npm run test:e2e   # live-API smoke tests

Test a local build interactively with the MCP Inspector:

NBAI_API_KEY=<key> npx @modelcontextprotocol/inspector node packages/server/dist/index.js

MCP Server · Populars

MCP Server · New

    ennisaaaaaaaa-stack

    Tideline 潮痕

    Tideline-Memory is a long-term memory system built for AI Agents. Most agent memory: You ask, it finds. Tideline: The agent wakes up already knowing who he is, not querying "who am I?" every session. Achieving accurate memory hits while also preventing memory from expanding at scale.No compression, no forgetting.

    Get-Concord-AI

    Concord MCP

    Live messaging for coding agents

    Community Get-Concord-AI
    alijancb

    Subio MCP

    Open-source MCP server for discovering fast-growing internet conversations with Subio

    Community alijancb
    ruezo

    MCP Video Digest (视频内容提取总结)

    MCP Server for transcribing videos via video links and summarizing video content

    Community ruezo
    LastSearch-HQ

    LastSearch

    Reliable research infrastructure for AI agents. Evidence-backed web search with citations, confidence scores, and Clarity anti-hallucination. MCP server, REST API, Python SDK.

    Community LastSearch-HQ