Bring Geocoding
to Vercel AI SDK
Create your Vinkius account to connect OpenCage to Vercel AI SDK and start using all 10 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 OpenCage MCP Server?
Give your AI agent precise geolocation superpowers with OpenCage Geocoding. Convert any address into coordinates, reverse-geocode GPS pins into readable addresses, and apply advanced filters — all through natural conversation.
What you can do
- Forward Geocoding — Convert any address or place name into exact latitude/longitude coordinates
- Reverse Geocoding — Turn GPS coordinates into structured street addresses with timezone and sun data
- Country Filtering — Restrict results to a specific country (ISO 3166-1 Alpha-2) to avoid ambiguous city matches
- Language Bias — Request results localized in any IETF language code (e.g., pt-BR, fr-FR)
- Confidence Scoring — Filter geocoding results by minimum confidence level (1–10) for delivery-grade accuracy
- Bounding Box — Constrain results to a geographic rectangle for targeted regional searches
- Privacy Mode — Run geocoding queries without OpenCage logging them, for sensitive addresses
- Duplicate Control — Return or suppress duplicate results for data validation workflows
How it works
- Subscribe to this server
- Enter your OpenCage API Key
- Start geocoding from Claude, Cursor, or any MCP-compatible client
Who is this for?
- Logistics teams — validate delivery addresses before dispatching drivers to avoid failed deliveries
- Data engineers — enrich datasets with lat/lng coordinates and timezone metadata at scale
- Privacy-conscious apps — geocode sensitive addresses without leaving a trace in third-party logs
Built-in capabilities (10)
Retrieve the exact structural matching verifying Delivery alternatives
Identify bounded routing spaces inside the Headless OpenCage Engine
Inspect deep internal arrays mitigating specific Polygon domains
Perform structural extraction of properties driving active Country nodes
Dispatch an automated validation check routing explicit Score limits
Retrieve explicit Cloud logging tracing explicit Payload locales
Provision a highly-available JSON Payload generating secure mappings
Enumerate explicitly attached structured rules exporting active GPS pins
Identify precise active arrays spanning native Location limits faster
Irreversibly vaporize explicit validation limits extracting UTC logic
Why Vercel AI SDK?
The Vercel AI SDK gives every OpenCage tool full TypeScript type inference, IDE autocomplete, and compile-time error checking. Connect 10 tools through Vinkius and stream results progressively to React, Svelte, or Vue components. works on Edge Functions, Cloudflare Workers, and any Node.js runtime.
- —
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 OpenCage integration everywhere
- —
Built-in streaming UI primitives let you display OpenCage 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
OpenCage in Vercel AI SDK
Why run OpenCage with Vinkius?
The OpenCage 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 10 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 OpenCage using Vinkius. You will never be left in the dark about what your AI agents are doing with your tools.
OpenCage and 4,000+ other AI tools. No hosting, no code, ready to use.
Professionals who connect OpenCage to Vercel AI SDK 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
OpenCage for Vercel AI SDK
Every request between Vercel AI SDK and OpenCage 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 accurate is the geocoding — can I use it for delivery routing?
OpenCage returns a confidence score from 1 to 10 for each result. Use the high-confidence filter (min_confidence=8 or higher) to get delivery-grade accuracy. Combined with country filtering, you can eliminate ambiguous matches and get coordinates reliable enough for last-mile dispatch.
What does privacy mode actually do?
When you enable no_record=1, OpenCage processes your query but doesn't log it in their cache or analytics. The result is identical, but the query leaves no trace on their servers. Ideal for geocoding patient addresses, legal documents, or any PII-sensitive data.
Can I geocode in multiple languages — like getting results in Portuguese for a Brazilian address?
Yes. Use the language bias tool with any IETF language code (pt-BR, es-MX, fr-FR, etc.) and OpenCage returns the address components translated to that locale. Perfect for building multilingual apps or standardizing address formats across regions.
How does the Vercel AI SDK connect to MCP servers?
Import 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?
Yes. The AI SDK is fully edge-compatible. MCP connections work on Vercel Edge Functions, Cloudflare Workers, and similar runtimes.
Does it support streaming tool results?
Yes. The SDK provides streaming primitives like useChat and streamText that handle tool calls and display results progressively in the UI.
createMCPClient is not a function
Install: npm install @ai-sdk/mcp
Explore More MCP Servers
View all →
Hugging Face Audio
4 toolsConnect Hugging Face Audio to any AI agent via MCP.

Mem0
4 toolsGive your AI agent persistent memory — store, search, and recall facts, preferences, and context across sessions using the leading agent memory platform.

Time MS Converter
1 toolsStop AI math hallucinations. Convert human-readable time (e.g., '2 days', '1.5h') into exact milliseconds for DevOps scheduling.

Missing Value Imputer
1 toolsAutomatically fill NaN and missing values in datasets using Mean, Median, Mode, or Zero strategies deterministically local. Essential ML data preparation.
