Overview
The Hypermode Graph MCP (Model Context Protocol) server enables integration between your Hypermode Graph and AI coding assistants like Claude Desktop, Cursor, and other MCP-compatible tools. Two MCP endpoints are available with common tools for AI coding assistants:mcp (an endpoint that provides tools
and data from your Graph) and mcp-ro (an endpoint that provides tools and data
from your Graph in read-only mode).
What’s MCP? The Model Context Protocol is an open standard that enables
developers to build secure, two-way connections between their data sources and
AI-powered tools. Think of the Hypermode Graph MCP server as a universal
connector that allows AI assistants to understand and interact with your graph
data.
Why use Hypermode Graph MCP?
For exploratory data analysis
- Interactive graph exploration: Query your knowledge graphs using natural language through your AI assistant
- Pattern Discovery: Let AI help identify relationships, clusters, and anomalies in your graph data
- Dynamic schema understanding: AI assistants can introspect your graph structure and suggest optimal queries
- Real-time insights: Get immediate answers about your data without writing complex DQL queries
For AI coding assistants
- Context-aware development: Your coding assistant understands your graph schema and data patterns
- Intelligent query generation: AI can write and optimize DQL queries based on your specific use case
- Schema evolution support: Get suggestions for schema changes and migrations
- Debugging assistance: AI can help troubleshoot graph queries and performance issues
Architecture
The Hypermode Graph MCP server follows the standard MCP architecture: Components:- MCP host: Your AI-powered app (Claude Desktop, IDE with AI features)
- MCP client: Protocol client that maintains connection with the Dgraph server
- Dgraph MCP server: Exposes graph capabilities through standardized MCP interface
- Graph database: Your Dgraph cluster (local or on Hypermode)
MCP server types
Hypermode Graph provides two MCP server variants to match your security and usage requirements:Standard MCP server (mcp)
- Full Access: Read and write operations on your graph
- Use Cases: Development environments, data modeling, schema evolution
- Capabilities: Query execution, mutations, schema modifications, namespace management
Read-only MCP server (mcp-ro)
- Safe Exploration: Query-only access to your graph data
- Use Cases: Production analysis, reporting, exploratory data analysis
- Capabilities: DQL queries, schema introspection, data visualization support
Setup guide
Running with Hypermode Graphs
When using Hypermode Graphs, the MCP configuration is available on the graph details screen in the console:1
Access Graph Console
Navigate to your Hypermode workspace and select your graph instance.
2
Copy MCP Configuration
From the graph details screen, copy the provided MCP configuration.
3
Configure Your AI Assistant
Add the configuration to your AI assistant’s settings:
Running with local Dgraph
You can also run MCP with your local Dgraph instance by starting the Alpha server with the--mcp flag:
Starting Dgraph Alpha with MCP
- Full access:
http://localhost:8080/mcp/sse - Read-only:
http://localhost:8080/mcp-ro/sse
Configure AI assistant for local Dgraph
Standalone MCP server
For development or testing, you can also run a standalone MCP server:Available capabilities
Tools
Interactive tools for graph operations: The Hypermode Graph MCP server provide the following tools:get_schema
Retrieve the current schema of your graph database.
Example User request:
run_query
Run a DQL query on your graph database.
Parameters:
query(string): DQL query to execute
run_mutation
Run a DQL mutation on your graph database.
Parameters:
mutation(string): DQL mutation to execute
alter_schema
Modify the DQL schema of your graph database.
Parameters:
schema(string): DQL schema to apply
get_common_queries
Provides reference queries to aid in query syntax.
Resources
The MCP server exposes read only data from your graph as resources:Due to current limitations in some MCP clients that don’t yet support MCP
resources, some tools are exposed as both tools and resources.
dgraph://schema
The current Dgraph DQL schema.
dgraph://common_queries
Pre-built query patterns for common operations.
Prompts
Pre-configured prompt templates for common graph operations:quickstart_prompt
A quickstart prompt for getting started with graph MCP.
Example tool interactions
Here are additional examples of AI assistant interactions with the MCP tools using a financial transaction theme:Complex transaction analysis
Example User request:Account balance updates
Example User request:Example workflows
Exploratory data analysis
1
Understand your data
Ask your AI assistant: “What does the graph schema look like and what are the main entity types?”
2
Discover patterns
“Find all users who have more than 10 connections and show their relationship
patterns.”
3
Analyze distributions
“What’s the distribution of node types in the graph? Are there any outliers or
interesting clusters?”
4
Performance insights
“Which queries are running slowly and how can we optimize them?”
AI-assisted development
1
Schema design
“I want to model a social network with users, posts, and interactions. What’s the optimal schema design?”
2
Query optimization
“This query is slow:
[paste query]. How can we improve its performance?”3
Index recommendations
“Based on the query patterns, what indices should we add to improve
performance?”
4
Migration planning
“I need to add a new ‘tags’ predicate to existing posts. What’s the safest migration approach?”
Best practices
Security
- Use Read-Only Servers: Default to
mcp-rofor analysis and exploration - Authentication: Always use bearer tokens for Hypermode connections
Development workflow
- Start with Read-Only: Begin exploration with
mcp-roto understand your data - Iterative Schema Design: Use AI assistance for gradual schema evolution
- Query Testing: Validate AI-generated queries in development before production
- Documentation: Keep schema documentation updated for better AI understanding