A Claude Code skill that enables intelligent interaction with NebulaGraph databases through the nebulagraph-mcp-server. It provides nGQL query generation, schema design guidance, and workflow orchestration for graph database operations.
nebulagraph/
├── SKILL.md # Entry point — workflow, MCP tools, pitfalls, resource index
├── references/ # Detailed reference (read on demand)
│ ├── ngql-syntax.md # Core nGQL syntax — types, DDL/DML, MATCH, GO, functions, indexes
│ ├── data-modeling.md # Schema design — VID strategy, tags, edges, partitions, patterns
│ ├── operators.md # Comparison, boolean, string, set, list operators & precedence
│ ├── functions.md # All built-in function signatures & examples
│ ├── clauses.md # YIELD, SAMPLE, INNER JOIN, WITH, UNWIND, ORDER BY, GROUP BY
│ ├── composite-queries.md # Pipe, variables, property references ($- $^ $$)
│ ├── show-statements.md # All SHOW statement variants
│ ├── fulltext-index.md # Elasticsearch full-text search integration
│ └── admin.md # JOB management, KILL QUERY/SESSION, users & roles
└── examples/ # Scenario-based examples
└── workflows.md # Exploration, query composition, error diagnosis, common recipes
| Layer | Content | When Loaded |
|---|---|---|
| L1 | SKILL.md — workflow, essential patterns, common pitfalls, resource index |
Always (on skill activation) |
| L2 | references/*.md, examples/*.md |
On demand (when deeper syntax or examples needed) |
| L3 | Official doc URLs in SKILL.md | Fallback (edge cases: geography, keywords, deployment, etc.) |
- A running NebulaGraph cluster (v3.x)
- nebulagraph-mcp-server installed and configured
Install the MCP server:
pip install nebulagraph-mcp-serverAdd to your Claude Code MCP config (~/.claude/settings.json or project .claude/settings.json):
{
"mcpServers": {
"nebulagraph": {
"command": "python",
"args": ["-m", "nebulagraph_mcp_server"],
"env": {
"NEBULA_VERSION": "v3",
"NEBULA_HOST": "127.0.0.1",
"NEBULA_PORT": "9669",
"NEBULA_USER": "root",
"NEBULA_PASSWORD": "nebula"
}
}
}
}Note:
NEBULA_VERSIONmust bev3. AdjustNEBULA_HOSTandNEBULA_PORTto match your cluster.
Copy the nebulagraph/ directory to one of these locations:
Global (available in all projects):
~/.claude/skills/nebulagraph/
Project-level (available only in this project):
<project-root>/.claude/skills/nebulagraph/
- Start a new Claude Code session
- Try a trigger phrase like "Query NebulaGraph for all spaces" or "Design a graph schema for user relationships"
- Claude should activate the skill and use the MCP tools
The skill activates when you mention:
- NebulaGraph, nGQL, graph database schema
- Graph space, graph paths, graph neighbors
- Knowledge graph, graph data modeling
- MCP tool names:
list_spaces,get_space_schema,execute_query,find_path,find_neighbors - Actions: query/write nGQL, create graph space, design graph schema, find paths, explore neighbors, insert vertices/edges, traverse a graph
| Tool | Purpose |
|---|---|
list_spaces() |
Discover available graph spaces |
get_space_schema(space) |
Inspect tags, edges, indexes |
execute_query(query, space) |
Run any nGQL statement |
find_path(src, dst, space, depth, limit) |
Find paths between two vertices |
find_neighbors(vertex, space, depth) |
Explore connections around a vertex |
- Edit
SKILL.mdfrontmatterdescriptionto adjust trigger conditions - Add domain-specific patterns to
examples/workflows.md - Extend
references/ngql-syntax.mdwith custom functions or UDFs - Add organization-specific modeling conventions to
references/data-modeling.md - Add new reference files under
references/and register them in the Additional Resources section ofSKILL.md - Add official doc URLs to the Online-Only Reference list for topics without local files