Overpass (OpenStreetMap) MCP Server for Vercel AI SDK 16 tools — connect in under 2 minutes
The Vercel AI SDK is the TypeScript toolkit for building AI-powered applications. Connect Overpass (OpenStreetMap) through Vinkius and every tool is available as a typed function. ready for React Server Components, API routes, or any Node.js backend.
ASK AI ABOUT THIS MCP SERVER
Vinkius supports streamable HTTP and SSE.
import { createMCPClient } from "@ai-sdk/mcp";
import { generateText } from "ai";
import { openai } from "@ai-sdk/openai";
async function main() {
const mcpClient = await createMCPClient({
transport: {
type: "http",
// Your Vinkius token. get it at cloud.vinkius.com
url: "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
},
});
try {
const tools = await mcpClient.tools();
const { text } = await generateText({
model: openai("gpt-4o"),
tools,
prompt: "Using Overpass (OpenStreetMap), list all available capabilities.",
});
console.log(text);
} finally {
await mcpClient.close();
}
}
main();
* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
About Overpass (OpenStreetMap) MCP Server
Connect to Overpass API (OpenStreetMap) and query the world's largest free geographic database through natural conversation — no API key needed.
The Vercel AI SDK gives every Overpass (OpenStreetMap) tool full TypeScript type inference, IDE autocomplete, and compile-time error checking. Connect 16 tools through Vinkius and stream results progressively to React, Svelte, or Vue components. works on Edge Functions, Cloudflare Workers, and any Node.js runtime.
What you can do
- Amenity Search — Find restaurants, cafes, hospitals, schools, pharmacies, ATMs, fuel stations and more
- Shop Search — Discover shops, supermarkets, bakeries, clothing stores and retail outlets
- Nearby Search — Find any amenity within a radius of any GPS coordinate
- Hotel Search — Locate hotels, hostels and tourist accommodation
- Park Search — Find parks, gardens and green spaces
- EV Charging — Locate electric vehicle charging stations
- Custom Queries — Execute custom Overpass QL queries for any OSM data
The Overpass (OpenStreetMap) MCP Server exposes 16 tools through the Vinkius. Connect it to Vercel AI SDK in under two minutes — no API keys to rotate, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.
How to Connect Overpass (OpenStreetMap) to Vercel AI SDK via MCP
Follow these steps to integrate the Overpass (OpenStreetMap) MCP Server with Vercel AI SDK.
Install dependencies
Run npm install @ai-sdk/mcp ai @ai-sdk/openai
Replace the token
Replace [YOUR_TOKEN_HERE] with your Vinkius token
Run the script
Save to agent.ts and run with npx tsx agent.ts
Explore tools
The SDK discovers 16 tools from Overpass (OpenStreetMap) and passes them to the LLM
Why Use Vercel AI SDK with the Overpass (OpenStreetMap) MCP Server
Vercel AI SDK provides unique advantages when paired with Overpass (OpenStreetMap) through the Model Context Protocol.
TypeScript-first: every MCP tool gets full type inference, IDE autocomplete, and compile-time error checking out of the box
Framework-agnostic core works with Next.js, Nuxt, SvelteKit, or any Node.js runtime. same Overpass (OpenStreetMap) integration everywhere
Built-in streaming UI primitives let you display Overpass (OpenStreetMap) tool results progressively in React, Svelte, or Vue components
Edge-compatible: the AI SDK runs on Vercel Edge Functions, Cloudflare Workers, and other edge runtimes for minimal latency
Overpass (OpenStreetMap) + Vercel AI SDK Use Cases
Practical scenarios where Vercel AI SDK combined with the Overpass (OpenStreetMap) MCP Server delivers measurable value.
AI-powered web apps: build dashboards that query Overpass (OpenStreetMap) in real-time and stream results to the UI with zero loading states
API backends: create serverless endpoints that orchestrate Overpass (OpenStreetMap) tools and return structured JSON responses to any frontend
Chatbots with tool use: embed Overpass (OpenStreetMap) capabilities into conversational interfaces with streaming responses and tool call visibility
Internal tools: build admin panels where team members interact with Overpass (OpenStreetMap) through natural language queries
Overpass (OpenStreetMap) MCP Tools for Vercel AI SDK (16)
These 16 tools become available when you connect Overpass (OpenStreetMap) to Vercel AI SDK via MCP:
custom_query
The query should be valid Overpass QL syntax. The output format is automatically set to JSON. If no out statement is included, "out geom;" is appended automatically. Example: `node["amenity"="cafe"](51.5,-0.15,51.51,-0.14); out geom;` Execute a custom Overpass QL query
search_amenities
Common amenities: "restaurant", "cafe", "school", "hospital", "pharmacy", "bank", "atm", "fuel", "parking", "toilets", "library", "police", "fire_station", "post_office", "cinema", "theatre", "nightclub", "bar", "pub", "fast_food", "ice_cream". Bbox format: lat_min,lon_min,lat_max,lon_max. Search for amenities (restaurants, schools, hospitals, etc.) in a bounding box
search_atms
Returns ATM locations, operator/bank names, addresses, 24/7 availability and network info. Bbox format: lat_min,lon_min,lat_max,lon_max. Search for ATMs in a bounding box
search_by_name
Optional amenity filter to narrow results. Returns matching elements with full details including addresses, phone numbers and websites. Search for OSM elements by name
search_by_tag
Bbox format: lat_min,lon_min,lat_max,lon_max (e.g. "51.249,-0.15,51.251,-0.10" for central London). Useful for finding specific OSM-tagged features. Search OpenStreetMap elements by tag key/value in a bounding box
search_charging_stations
Returns station names, addresses, connector types, charging speeds, operator info and access details. Bbox format: lat_min,lon_min,lat_max,lon_max. Search for EV charging stations in a bounding box
search_fuel_stations
Returns station names, brands, addresses, fuel types offered, opening hours and operator info. Bbox format: lat_min,lon_min,lat_max,lon_max. Search for fuel/gas stations in a bounding box
search_hospitals
Returns facility names, addresses, phone numbers, emergency services info, specialties and operator info. Bbox format: lat_min,lon_min,lat_max,lon_max. Search for hospitals and clinics in a bounding box
search_hotels
Returns hotel names, addresses, star ratings, phone numbers, websites and room info. Bbox format: lat_min,lon_min,lat_max,lon_max. Search for hotels in a bounding box
search_nearby
Useful for finding nearby amenities without defining a full bounding box. Returns names, addresses, distances and details. Search for OSM elements near a specific location
search_nearby_amenities
Common amenities: "restaurant", "cafe", "pharmacy", "atm", "bank", "hospital", "school", "supermarket", "fuel", "charging_station", "parking", "toilets", "police", "fire_station", "post_office". Search for specific amenities near a location
search_parks
Returns park names, addresses, area sizes, features (playgrounds, sports facilities) and operator info. Bbox format: lat_min,lon_min,lat_max,lon_max. Search for parks and green spaces in a bounding box
search_pharmacies
Returns pharmacy names, addresses, phone numbers, opening hours, dispensing info and operator info. Bbox format: lat_min,lon_min,lat_max,lon_max. Search for pharmacies in a bounding box
search_restaurants
Optional cuisine filter: "italian", "chinese", "japanese", "indian", "mexican", "thai", "french", "american", "pizza", "burger", "sushi", "vegan", "vegetarian". Bbox format: lat_min,lon_min,lat_max,lon_max. Search for restaurants in a bounding box
search_schools
Returns school names, addresses, phone numbers, websites, student capacity and operator info. Bbox format: lat_min,lon_min,lat_max,lon_max. Search for schools in a bounding box
search_shops
Optional shop type filter: "supermarket", "convenience", "clothes", "bakery", "butcher", "electronics", "furniture", "hardware", "jewelry", "mall", "bookmaker", "car", "car_repair", "chemist", "florist", "gift", "hairdresser", "mobile_phone", "shoes", "sports", "toys". Bbox format: lat_min,lon_min,lat_max,lon_max. Search for shops in a bounding box
Example Prompts for Overpass (OpenStreetMap) in Vercel AI SDK
Ready-to-use prompts you can give your Vercel AI SDK agent to start working with Overpass (OpenStreetMap) immediately.
"Find all restaurants in Lower Manhattan."
"Find ATMs within 500m of Times Square (40.7580, -73.9855)."
"Find EV charging stations in downtown San Francisco."
Troubleshooting Overpass (OpenStreetMap) MCP Server with Vercel AI SDK
Common issues when connecting Overpass (OpenStreetMap) to Vercel AI SDK through the Vinkius, and how to resolve them.
createMCPClient is not a function
npm install @ai-sdk/mcpOverpass (OpenStreetMap) + Vercel AI SDK FAQ
Common questions about integrating Overpass (OpenStreetMap) MCP Server with Vercel AI SDK.
How does the Vercel AI SDK connect to MCP servers?
createMCPClient from @ai-sdk/mcp and pass the server URL. The SDK discovers all tools and provides typed TypeScript interfaces for each one.Can I use MCP tools in Edge Functions?
Does it support streaming tool results?
useChat and streamText that handle tool calls and display results progressively in the UI.Connect Overpass (OpenStreetMap) with your favorite client
Step-by-step setup guides for every MCP-compatible client and framework:
Anthropic's native desktop app for Claude with built-in MCP support.
AI-first code editor with integrated LLM-powered coding assistance.
GitHub Copilot in VS Code with Agent mode and MCP support.
Purpose-built IDE for agentic AI coding workflows.
Autonomous AI coding agent that runs inside VS Code.
Anthropic's agentic CLI for terminal-first development.
Python SDK for building production-grade OpenAI agent workflows.
Google's framework for building production AI agents.
Type-safe agent development for Python with first-class MCP support.
TypeScript toolkit for building AI-powered web applications.
TypeScript-native agent framework for modern web stacks.
Python framework for orchestrating collaborative AI agent crews.
Leading Python framework for composable LLM applications.
Data-aware AI agent framework for structured and unstructured sources.
Microsoft's framework for multi-agent collaborative conversations.
Connect Overpass (OpenStreetMap) to Vercel AI SDK
Get your token, paste the configuration, and start using 16 tools in under 2 minutes. No API key management needed.
