Bring Geocoding
to Mastra AI
Create your Vinkius account to connect Mapbox to Mastra AI and start using all 8 AI tools in minutes. Fully managed, enterprise secure, and ready to use without writing a single line of code. No hosting, no server setup — just connect and start using.
Compatible with every major AI agent and IDE
What is the Mapbox MCP Server?
Connect to Mapbox and access world-class location services through natural conversation.
What you can do
- Geocoding — Convert addresses, place names and POIs to coordinates and structured addresses
- Reverse Geocoding — Convert GPS coordinates to human-readable addresses
- Directions — Get driving, walking and cycling routes with step-by-step instructions
- Distance Matrix — Calculate travel times and distances between multiple locations
- Isochrones — Show areas reachable within a specific time or distance
- Elevation — Get elevation data for any coordinates
- Static Maps — Generate map image URLs for any location
- Nearby Search — Find points of interest near coordinates
How it works
- Subscribe to this server
- Enter your Mapbox Access Token
- Start using location services from Claude, Cursor, or any MCP-compatible client
Who is this for?
- Developers — geocode addresses, calculate routes and generate map images via API
- Logistics — optimize delivery routes with distance matrices and isochrones
- Travelers — get directions, find nearby places and check elevation data
Built-in capabilities (8)
Returns the place name, coordinates, address components (street, city, state, postal code, country), place type and bounding box. Use this to find coordinates for use with directions, distance matrix and other tools. Convert a place name to coordinates
Returns route distance, duration, geometry, step-by-step instructions and maneuver data. Supports driving (mapbox/driving), walking (mapbox/walking) and cycling (mapbox/cycling) profiles. Coordinates are semicolon-separated "longitude,latitude" pairs (e.g. "-77.0365,38.8977;-74.006,40.7128" for DC to NYC). Get driving, walking or cycling directions
Useful for logistics, delivery routing and travel planning. Returns a matrix of durations (seconds) and distances (meters) between all source-destination pairs. Coordinates are semicolon-separated "lon,lat" pairs. Supports driving, walking and cycling profiles. Get travel times between multiple origins and destinations
Useful for hiking, aviation and geographic research. Coordinates are comma-separated "lon,lat" pairs. Get elevation for coordinates
Returns polygon contours showing the reachable area. Useful for determining service areas, commute ranges and accessibility. Coordinates are "lon,lat". Get reachable area within a time or distance
Returns a direct image URL that can be used in markdown, HTML or downloaded. Supports customizable zoom level and image dimensions. Generate a static map image for a location
Returns the nearest address, city, state, country and other location details. Convert coordinates to an address
Returns nearby places with names, addresses, categories, distances and coordinates. Use query to search for specific types of places (e.g. "restaurant", "gas station", "hotel"). Search for places near coordinates
Why Mastra AI?
Mastra's agent abstraction provides a clean separation between LLM logic and Mapbox tool infrastructure. Connect 8 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.
- —
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add Mapbox without touching business code
- —
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
- —
TypeScript-native: full type inference for every Mapbox tool response with IDE autocomplete and compile-time checks
- —
One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure
Mapbox in Mastra AI
Why run Mapbox with Vinkius?
The Mapbox connection runs on our fully managed, secure cloud infrastructure. We handle the hosting, maintenance, and security so you don't have to deal with servers or code. All 8 tools are ready to work instantly without any complex setup.
You stay in complete control of your data. Your AI only accesses the information you approve, keeping your sensitive passwords and private details completely safe. Plus, with automatic optimizations, your AI works faster and more efficiently.

* Every connection is hosted and maintained by Vinkius. We handle the security, updates, and infrastructure so you don't have to write code or manage servers. See our infrastructure
Over 4,000 integrations ready for AI agents
Explore a vast library of pre-built integrations, optimized and ready to deploy.
Connect securely in under 30 seconds
Generate tokens to authenticate and link external services in a single step.
Complete visibility into every agent action
Audit live requests, latency, success rates, and active security compliance policies.
Optimize spending and track token ROI
Analyze real-time token consumption and cost metrics detailed by connection.




Explore our live AI Agents Analytics dashboard to see it all working
This dashboard is included when you connect Mapbox using Vinkius. You will never be left in the dark about what your AI agents are doing with your tools.
Mapbox and 4,000+ other AI tools. No hosting, no code, ready to use.
Professionals who connect Mapbox to Mastra AI through Vinkius don't need to write code, manage servers, or worry about security. Everything is pre-configured, secure, and runs automatically in the background.
Raw MCP | Vinkius | |
|---|---|---|
| Ready-to-use MCPs | Find and configure each manually | 4,000+ MCPs ready to use |
| Connection Setup | Manual coding & server setup | 1-click instant connection |
| Server Hosting | You host it yourself (needs 24/7 uptime) | 100% hosted & managed by Vinkius |
| Security & Privacy | Stored in plaintext config files | Bank-grade encrypted vault |
| Activity Visibility | Blind execution (no logs or tracking) | Live dashboard with real-time logs |
| Cost Control | Runaway AI token spend risk | Automatic budget limits |
| Revoking Access | Must delete files or code to stop | 1-click disconnect button |
How Vinkius secures
Mapbox for Mastra AI
Every request between Mastra AI and Mapbox is protected by our secure gateway. We automatically keep your sensitive data private, prevent unauthorized access, and let you disconnect instantly at any time.
Frequently asked questions
How do I get a Mapbox Access Token?
Sign up for a free account at account.mapbox.com, go to Access Tokens and create a new token. Copy the token — it starts with pk..
Can I get driving directions?
Yes! Use get_directions with coordinates and the 'driving' profile. Returns route distance, duration, step-by-step instructions and geometry. Also supports 'walking' and 'cycling' profiles.
What are isochrones used for?
Isochrones show the area reachable within a specific time or distance from a location. Useful for delivery zones, commute analysis, real estate proximity and accessibility planning.
Can I calculate distances between multiple locations?
Yes! Use get_distance_matrix with multiple coordinate pairs. Returns a matrix of durations (seconds) and distances (meters) between all source-destination pairs. Supports driving, walking and cycling profiles.
How does Mastra AI connect to MCP servers?
Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
Can Mastra agents use tools from multiple servers?
Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
Does Mastra support workflow orchestration?
Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.
createMCPClient not exported
Install: npm install @mastra/mcp
Explore More MCP Servers
View all →
Ecwid
10 toolsManage e-commerce stores via Ecwid — search products and orders, handle inventory, track customers, and audit store profiles directly from any AI agent.

ProTexting
12 toolsAutomate SMS marketing via ProTexting — manage campaigns, contacts, and keywords directly with AI.

UpGuard
9 toolsMonitor your attack surface and assess vendor security risks with continuous scanning that identifies vulnerabilities before attackers do.

PitchBook
13 toolsAI private market intelligence: research companies, deals, investors, and funds via agents.
