4,000+ servers built on MCP Fusion
Vinkius
Mastra AISDK
Mastra AI
Why use SafeGraph MCP Server with Mastra AI?

Bring Geospatial Data
to Mastra AI

Create your Vinkius account to connect SafeGraph to Mastra AI 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.

MCP Inspector GDPR Free for Subscribers
Batch Lookup PlacekeysGraphql Raw QueryLookup Building GeometryLookup Parent PolygonLookup Place PatternsLookup PlacekeySearch Brand PlacesSearch Distance RadiusSearch Industry NaicsSearch Wkt Polygon
ChatGPT Claude Perplexity

Compatible with every major AI agent and IDE

ClaudeClaude
ChatGPTChatGPT
CursorCursor
GeminiGemini
WindsurfWindsurf
VS CodeVS Code
JetBrainsJetBrains
VercelVercel
+ other MCP clients
SafeGraph

What is the SafeGraph MCP Server?

Empower your AI with direct connectivity to SafeGraph, the foundational geospatial and mobility dataset trusted by top analytics and enterprise organizations globally. This robust integration converts your AI into an expert geographical analyst capable of retrieving precise intelligence surrounding global structures, Points of Interest (POIs), and detailed patterns—all without touching complex database pipelines.

What you can do

  • Rich Context on POIs — Fetch exhaustive lists of businesses or brands within targeted radii (search_distance_radius, search_brand_places). You can also slice the results according to their designated NAICS industry codes region-to-region (search_industry_naics).
  • Deep Geospatial Footprints — Look up exact WKT polygons for targeted individual buildings (lookup_building_geometry) or identify everything bounded inside designated custom city borders (search_wkt_polygon). Understand structural hierarchies immediately by querying parent containers like malls or industrial complexes (lookup_parent_polygon).
  • Pedestrian and Mobility Insights — Audit recent visit metrics, dwell times, and absolute foot traffic measurements attached to individual structures leveraging historical aggregation points (lookup_place_patterns).
  • Native GraphQL Exploration — Pass perfectly structured GraphQL queries straight to the root mapping infrastructure for fully-unlocked edge cases (graphql_raw_query). Request and resolve bulk Placekeys efficiently on demand (batch_lookup_placekeys).

How it works

  1. Install this SafeGraph mapping block into your AI workspace.
  2. Sign into the SafeGraph Dashboard environment.
  3. Request or generate a valid GraphQL API Key within your workspace settings.
  4. Input that key securely. Chat instantly: "Find all coffee shop POIs located within a 500-meter radius around longitude -122.33, latitude 47.60."

Built-in capabilities (10)

batch_lookup_placekeys

Provide them as a JSON array. Performs multiple Placekey lookups in a single request

graphql_raw_query

Provide the query string and optional variables. Executes a raw GraphQL query against the SafeGraph API

lookup_building_geometry

Retrieves the building footprint (polygon) for a specific Placekey

lookup_parent_polygon

Identifies the parent Placekey for a location (e.g., mall or airport)

lookup_place_patterns

Retrieves historical foot traffic patterns for a specific Placekey

lookup_placekey

Retrieves detailed attributes for a specific location by its Placekey

search_brand_places

g., "Starbucks") in a specific city. Searches for locations of a specific brand in a city

search_distance_radius

Specify lat, lon, and radius in meters. Searches for places within a specific radius from a point

search_industry_naics

Searches for places by NAICS industry code and region

search_wkt_polygon

Finds all places within a specific geometric polygon (WKT)

Why Mastra AI?

Mastra's agent abstraction provides a clean separation between LLM logic and SafeGraph tool infrastructure. Connect 10 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 SafeGraph 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 SafeGraph 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

M
See it in action

SafeGraph in Mastra AI

AI AgentVinkius
High Security·Kill Switch·Plug and Play
Enterprise Security

Why run SafeGraph with Vinkius?

The SafeGraph 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.

SafeGraph
Fully ManagedNo server setup
Plug & PlayNo coding needed
SecurePrivacy protected
PrivateYour data is safe
Cost ControlBudget limits
Control1-click disconnect
Auto-UpdatesMaintenance free
High SpeedOptimized for AI
Reliable99.9% uptime
Your credentials and connection tokens are fully encrypted

* 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

01 / Catalog

Over 4,000 integrations ready for AI agents

Explore a vast library of pre-built integrations, optimized and ready to deploy.

02 / Credentials

Connect securely in under 30 seconds

Generate tokens to authenticate and link external services in a single step.

03 / Guardian

Complete visibility into every agent action

Audit live requests, latency, success rates, and active security compliance policies.

04 / FinOps

Optimize spending and track token ROI

Analyze real-time token consumption and cost metrics detailed by connection.

Over 4,000 integrations ready for AI agents
Connect securely in under 30 seconds
Complete visibility into every agent action
Optimize spending and track token ROI

Explore our live AI Agents Analytics dashboard to see it all working

This dashboard is included when you connect SafeGraph using Vinkius. You will never be left in the dark about what your AI agents are doing with your tools.

Why Vinkius

SafeGraph and 4,000+ other AI tools. No hosting, no code, ready to use.

Professionals who connect SafeGraph 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.

4,000+MCP Integrations
<40msResponse time
100%Fully managed
Raw MCP
Vinkius
Ready-to-use MCPsFind and configure each manually4,000+ MCPs ready to use
Connection SetupManual coding & server setup1-click instant connection
Server HostingYou host it yourself (needs 24/7 uptime)100% hosted & managed by Vinkius
Security & PrivacyStored in plaintext config filesBank-grade encrypted vault
Activity VisibilityBlind execution (no logs or tracking)Live dashboard with real-time logs
Cost ControlRunaway AI token spend riskAutomatic budget limits
Revoking AccessMust delete files or code to stop1-click disconnect button
The Vinkius Advantage

How Vinkius secures SafeGraph for Mastra AI

Every request between Mastra AI and SafeGraph is protected by our secure gateway. We automatically keep your sensitive data private, prevent unauthorized access, and let you disconnect instantly at any time.

< 40msCold start
Ed25519Signed audit chain
60%Token savings
FAQ

Frequently asked questions

01

Can I manipulate or delete existing POIs present inside the global SafeGraph spatial indexes?

No. The AI interacts safely with the GraphQL API strictly on a 'read-only' query-bound basis. It has absolutely no inherent capability to corrupt or perform unauthorized destructive operations such as erasing core places or overwriting coordinates in your environment.

02

Are geometric polygons always provided for queried structures automatically?

No, they must be explicitly queried utilizing the lookup_building_geometry functionality along with a verified Placekey, or structured thoroughly using the standard GraphQL command when available. Otherwise most basic list operations only return textual descriptors and simple pinpoint latitude/longitude figures.

03

Does the AI download huge databases directly into my storage limit when filtering large geographical boundary ranges (WKT)?

The integration employs a managed response methodology natively implemented through GraphQL constraints. The output responses are strictly paginated securely filtering hundreds of points effectively rather than attempting to sync gigabytes directly to the chatbot at once.

04

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.

05

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.

06

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.

07

createMCPClient not exported

Install: npm install @mastra/mcp

Explore More MCP Servers

View all →