Bbox Mcp Server

io.github.iamvibhorsingh由 GitHub 账号 iamvibhorsingh 发布v1.2.6更新于 Oct 24, 2026

Geospatial toolkit for AI: spatial queries, coord conversion, H3, OSM search, map verification links

已验证STDIO仅桌面位置与生活数据与分析

概览

AI 生成的概览

地理空间工具包,让助手转换与投影边界框、查询 OpenStreetMap,并把结果聚合到 H3 六边形网格,附带地图核验链接。

可以做什么
  • 在多种输入格式、输出格式与 EPSG 坐标系之间转换和投影边界框,并给出中心点与瓦片坐标
  • 为边界框生成 H3 六边形单元索引,可选合并单元或返回六边形几何
  • 在边界框或半径范围内用 Overpass QL 查询 OpenStreetMap,并查询某类别对应的正确 OSM 标签
  • 把 Overpass 结果聚合到 H3 六边形做密度分析,返回每个单元的计数与 GeoJSON 边界
  • 为边界框生成可分享的地图链接,便于目视核对结果
适用场景
适合需要真实空间答案而非猜测的场景:基于 OpenStreetMap 统计或定位兴趣点、在 WKT、GeoJSON 与投影坐标系之间转换,或对某区域做六边形分箱的密度分析。
运行要求
通过 npx 或全局 npm 安装在本地运行(需要 Node.js)。起步无需账号。可选的 MAPBOX_ACCESS_TOKEN 用于自然语言地点搜索;OVERPASS_API_URL、NOMINATIM_API_URL 与 MAX_H3_CELLS 用于调整端点和 H3 单元上限。需要访问公共 Overpass 与 Nominatim 实例的网络。
安装前请注意
查询会发往公共 Overpass 与 Nominatim 实例,结果通过服务商网站上的公开核验链接分享,被查询的位置会因此公开可见。可选的 Mapbox 令牌属于机密,勿写入共享配置。Overpass 与 Nominatim 是志愿者运营的服务并有使用限制,频繁查询可能被限流。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Bbox Mcp Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

🌍 bbox-mcp-server

Ask AI about anything, anywhere — and verify the answer on a map. For Free

The geospatial toolkit for AI agents. 6 tools, zero config — give any LLM the ability to find, query, convert, and aggregate spatial data using open data. No API keys or signups required to start.

Every response includes a shareable verification link to vibhorsingh.com/boundingbox — click it to visually confirm results on an interactive map. No other MCP server does this.

[Node.js] [License: MIT]


What Can You Do With This?

You don't have to be a GIS professional to make use of this. Any AI agent with this MCP server can answer spatial questions using real OpenStreetMap data and not spit out hallucinated garbage.

Ask your AI agent...What happens under the hood
"How many EV chargers are in downtown Denver?"Overpass query → H3 hex binning → density analysis
"Is there a hospital near this Airbnb?"POI search with structured tags → map verification link
"Find all playgrounds within 1km of this address"*Overpass query + radius filter → pinned results on a shareable map
"Convert this WKT to GeoJSON in EPSG:3857"Format conversion across 6 inputs, 9 outputs, 3,900+ projections
"Show me all bike-share stations in Amsterdam"Curated OSM tags → Overpass query → results on map
"Compare park density across Seattle neighborhoods"Overpass + H3 aggregation → hex-binned spatial analysis

Every answer comes with a link. Click it, see if the AI got it right and you can also share it with someone else.


What Makes This Different

Most AI tools give you text you have to trust. This one gives you an interactive map you can check and verify!

  • Verifiable — Every response includes a public URL where you (or anyone) can visually confirm the results. This is the only MCP server that does this in any domain.
  • Deterministic — Queries hit real OpenStreetMap data and return real coordinates. The AI interprets your question. The data comes from all the hard work done by all the awesome OSM volunteers.
  • Free — No paid services. Overpass API is free, OSM data is free, the tool is free. A Mapbox token (free tier, no payment info) unlocks natural language location search but isn't required.
  • Zero config — npx -y bbox-mcp-server and you're running.

Why This Exists

The problemHow bbox-mcp solves it
"I have WKT but the API needs a GeoJSON bbox in EPSG:3857."Parses 6 input formats, projects to 3,900+ EPSG codes, outputs in 9 formats — in one call.
"I keep getting the wrong OSM tags for Overpass queries."list_osm_tags returns curated tag combos. No more hallucinated amenity=grocery.
"How many hospitals are in this district?"aggregate_overpass_h3 queries Overpass and bins results into H3 hexagons server-side.
"Is this bounding box actually correct?"Every response includes a clickable map link for visual verification.

Tools at a Glance

ToolWhat it doesKey params
get_boundsConvert and project a bbox across formats and coordinate systemsbbox, epsg, format, coord_order, zoom
get_h3_indicesGenerate H3 hex cell indices covering a bboxbbox, resolution, compact
generate_share_urlCreate a shareable map link for a bboxbbox
search_overpassQuery OpenStreetMap via Overpass QL within a bbox or radiusbbox, query, limit, radius_meters
list_osm_tagsLook up correct OSM tags for a categorycategory
aggregate_overpass_h3Run an Overpass query and bin results into H3 hexagonsbbox, query, resolution

All tools accept location (natural language, requires Mapbox token) or bbox (coordinates, WKT, GeoJSON, etc).


Quick Start

Add to your MCP client config:

Claude Desktop (Click to expand)

Add to claude_desktop_config.json:

json
{  "mcpServers": {    "bbox": {      "command": "npx",      "args": ["-y", "bbox-mcp-server"]    }  }}
Cursor (Click to expand)

Add to .cursor/mcp.json:

json
{  "mcpServers": {    "bbox": {      "command": "npx",      "args": ["-y", "bbox-mcp-server"]    }  }}
Windsurf (Click to expand)

Add to ~/.codeium/windsurf/mcp_config.json:

json
{  "mcpServers": {    "bbox": {      "command": "npx",      "args": ["-y", "bbox-mcp-server"]    }  }}
VS Code (GitHub Copilot) or Google Antigravity (Click to expand)

Add to .vscode/mcp.json in your workspace:

json
{  "servers": {    "bbox": {      "command": "npx",      "args": ["-y", "bbox-mcp-server"]    }  }}

Try: "Find all coffee shops within 500m of Times Square"

Optional Configuration

json
{  "mcpServers": {    "bbox": {      "command": "npx",      "args": ["-y", "bbox-mcp-server"],      "env": {        "MAPBOX_ACCESS_TOKEN": "pk.your-token-here",        "OVERPASS_API_URL": "https://your.custom.overpass.instance/api/interpreter",        "NOMINATIM_API_URL": "https://your.custom.nominatim.instance"      }    }  }}
VariableDefaultDescription
MAPBOX_ACCESS_TOKEN—Enables natural language location search (e.g. "San Francisco")
OVERPASS_API_URLautoCustom Overpass endpoint. By default, rotates between overpass-api.de and kumi.systems.
NOMINATIM_API_URLhttps://nominatim.openstreetmap.orgCustom Nominatim endpoint. Set this if hosting as a shared/remote MCP server or using a commercial provider.
MAX_H3_CELLS50000Safety cap for H3 grid generation

Or install globally: npm install -g bbox-mcp-server


Tool Reference

get_bounds

Convert and project a bounding box across 6 input formats, 9 output formats, and 3,900+ coordinate systems. Returns the center point and tile coordinates for the centroid.

ParamTypeDefaultDescription
bboxstring—Input geometry (coordinates, WKT, GeoJSON, ogrinfo extent)
epsgstring"4326"Target projection. Unknown codes auto-fetched from epsg.io.
formatstring"csv"Output: csv, wkt, geojson-bbox, geojson-polygon, leaflet, overpass, ogc-bbox, kml, stac-bbox
coord_orderstring"lng,lat"Swap to "lat,lng" for APIs that expect latitude first
zoomnumber15Zoom level for tile coordinate calculation
precisionnumber6Decimal places in formatted output

💡 Prompt: "Get the bounding box for Central Park in WKT format projected to EPSG:32618"


get_h3_indices

Generate Uber H3 hexagonal cell indices covering a bounding box.

ParamTypeDefaultDescription
bboxstring—Input geometry
resolutionnumber—H3 resolution (0–15)
compactbooleanfalseMerge cells into coarser parents where possible
return_geometrybooleanfalseInclude GeoJSON hex boundaries

💡 Prompt: "Give me H3 cells at resolution 7 for downtown Chicago, include the hex geometries"


search_overpass

Execute an Overpass query within a bounding box or radius. Returns structured results with names, coordinates, and tags. The verification link plots each result as a pin on the map.

ParamTypeDefaultDescription
bboxstring—Input geometry
querystring—Overpass QL (e.g. nwr["amenity"="cafe"]). The server wraps it in the appropriate spatial filter automatically.
radius_metersnumber—Search radius in metres. Use only when the user specifies an explicit distance (e.g. 2000 for "within 2km"). Omit for area/region queries.
limitnumber100Max elements returned

💡 Prompt: "Find all parking within 2km of JFK airport"

💡 Prompt: "Search for hospitals in Manhattan, limit 50"


list_osm_tags

Look up the correct OpenStreetMap tags for a category before writing an Overpass query.

ParamTypeDescription
categorystringBroad category (e.g. "food", "health", "transport")

💡 Prompt: "What are the correct OSM tags for supermarkets?"


aggregate_overpass_h3

Run an Overpass query and bin results into H3 hexagons for spatial density analysis. Returns counts per cell and GeoJSON hex boundaries.

ParamTypeDefaultDescription
bboxstring—Input geometry
querystring—Overpass QL core query
resolutionnumber8H3 resolution for binning

💡 Prompt: "Aggregate all hospitals in Seattle into H3 bins at resolution 7"


generate_share_url

Generate a shareable link to visualize a bounding box on the interactive map at vibhorsingh.com/boundingbox.

ParamTypeDescription
bboxstringInput geometry

💡 Prompt: "Generate a share link for bbox 40.7128,-74.0060,40.7580,-73.9855"


Supported Input Formats

All tools auto-detect the input format. No need to specify which one you're using.

FormatExample
Raw coordinates40.7128,-74.0060,40.7580,-73.9855
WKTPOLYGON((-74.006 40.712, -73.985 40.712, ...))
GeoJSON{"type":"Feature","geometry":{...}}
GeoJSON bbox{"bbox":[-74.006,40.712,-73.985,40.758]}
ogrinfo extentExtent: (-74.006, 40.712) - (-73.985, 40.758)
Space-separated40.7128 -74.0060 40.7580 -73.9855

🤖 For AI Agent Developers

Response structure

Every tool returns two content blocks:

  1. Human-readable text — formatted output with the map verification link
  2. Structured JSON — all computed data, machine-parseable

Example get_bounds JSON response:

json
{  "original_wgs84": { "lat1": 40.7128, "lng1": -74.006, "lat2": 40.758, "lng2": -73.9855 },  "projected": { "xmin": -8238310.23, "ymin": 4970241.32, "xmax": -8235527.11, "ymax": 4976491.56 },  "center": { "lat": 40.7354, "lng": -73.99575 },  "tile_indices": { "z": 15, "x": 9660, "y": 12284 },  "epsg": "3857",  "coord_order": "lng,lat",  "area_km2": 8.681,  "dimensions": { "width_km": 1.714, "height_km": 5.066 },  "share_url": "https://vibhorsingh.com/boundingbox/#40.712800,-74.006000,40.758000,-73.985500"}

Error handling

All errors return isError: true with a descriptive message. Invalid coordinates, unknown EPSG codes, and oversized H3 requests all return clean errors — the server never crashes on bad input.

Logging

Structured JSON logs go to stderr (stdout is reserved for MCP protocol). Each entry includes timestamp, level, and context.


Acknowledgments & Fair Use

OpenStreetMap

This tool is built on OpenStreetMap: A global dataset created and maintained by millions of volunteers. Every query you run returns data that someone walked, mapped, or verified by hand. If you find this useful, consider contributing to OSM.

Responsible Usage

The public Overpass and Nominatim API instances are free community resources with limited capacity. Avoid tight loops, excessive polling, or bulk-scraping. If hosting this as a shared/remote MCP server, point NOMINATIM_API_URL and OVERPASS_API_URL at your own instance or a commercial provider (see Overpass API installation and Nominatim installation). The default server rotation for Overpass helps spread load, but it's not a substitute for responsible usage.


License

MIT

[MCP Badge]

来源:README.md,提交 dd4d8db

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.2.6最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分