gpkg-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@gpkg-mcplist all services"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
gpkg-mcp
Standalone knowledge graph MCP server for Moleculer/Go microservice projects. Scans a project directory, extracts service metadata (actions, commands, queries, routes, events, dependencies), seeds Neo4j, and exposes everything via a Python MCP server that any LLM client (Claude Desktop, Cursor, the gp-langchain bot) can call.
What it does
Scans TypeScript/JavaScript Moleculer services (layered, CQRS, gateway) and Go services
Extracts per-action metadata: handler type, params validator,
ctx.calldependencies (regex + variable resolution)Seeds Neo4j knowledge graph and writes per-service markdown docs
Serves a FastMCP server over Streamable HTTP or stdio
Caches scan fingerprints with a
schema_versionso improved extractors always trigger a re-scan
Related MCP server: kg-memory-mcp
Quick start (with sample data)
# One-shot bootstrap: checks prereqs, seeds sample services, starts MCP
./start.shThe script: checks uv + Neo4j, runs uv sync, seeds sample/ data into Neo4j, then starts the server on http://localhost:8000/mcp.
Manual setup
cp .env.sample .env
# edit .env — set GPKG_NEO4J_URI / GPKG_NEO4J_PASSWORD at minimum
uv sync
# Scan a project
uv run gpkg scan ../my-project
# Query the knowledge graph
uv run gpkg query "payment transfer"
# Start the MCP server
uv run gpkg serveCommands
Command | Description |
| Scan all services under |
| Enable LLM validation for low-confidence architecture detections |
| Bypass fingerprint cache, rescan everything |
| Set parallel scan concurrency (default: 5) |
| Full-text query against the seeded KG |
| Filter results to one service |
| Start MCP server (streamable-http on port 8000) |
| Start for Claude Desktop / Cursor local use |
MCP tools
Tool | Description |
| Scan all services; returns |
| Scan a single service; returns |
| Full-text search; returns |
| Full stored knowledge for one service |
| All known services with arch type + confidence |
Resource: kb://{service_name} — the generated markdown doc for a service.
Configuration
Copy .env.sample to .env:
Variable | Default | Description |
|
| Neo4j bolt URI |
|
| Neo4j username |
| (empty) | Neo4j password |
|
| Markdown KB output directory |
|
| Parallel scan workers |
|
| Enable LLM validation pass |
|
| Model for architecture validation |
|
| Only run LLM when confidence is below this |
| (empty) | Bearer token for MCP server (empty = unauthenticated) |
| (empty) | Required when |
Docker
# Build
docker build -t gpkg-mcp .
# Run with a local .env and data volume
docker run --env-file .env -p 8000:8000 -v $(pwd)/knowledge_base:/data/knowledge_base gpkg-mcp
# Scan a project (mount it read-only)
docker run --env-file .env \
-v $(pwd)/knowledge_base:/data/knowledge_base \
-v /path/to/my-project:/project:ro \
gpkg-mcp uv run gpkg scan /projectArchitecture detection
Type | Detection signal |
|
|
|
|
|
|
|
|
|
|
| No Moleculer; Express / Gin / Echo / Fiber |
Confidence levels: high → medium → low. LLM validation runs when confidence is below GPKG_LLM_CONFIDENCE_THRESHOLD.
Cache schema version
knowledge/cache.py has a CACHE_SCHEMA_VERSION constant (currently 4). Bump it whenever an extractor changes — the next scan will ignore all cached fingerprints and re-scan everything.
Running tests
uv run pytestTests cover: LayeredMoleculerExtractor action/handler/call extraction, cache schema version invalidation, and MCP tool shapes (mocked store, no Neo4j needed).
This server cannot be deployed
Maintenance
Related MCP Connectors
Repository knowledge graph MCP server for codebase understanding and debugging.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
The Cortex MCP server provides read-only access to real-time engineering context from the Cortex developer portal, allowing AI coding assistants to answer natural language questions about your organization's catalog (microservices, libraries, domains, teams, infrastructure), scorecards (engineering standards and best practices), initiatives (goals and deadlines), and Engineering Intelligence metrics. It includes tools for querying documentation, tracking personal entities, and accessing AI-assisted insights across the entire Cortex ecosystem.
Personal knowledge base MCP server with semantic search, auto-categorization, metadata extraction
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceA high-performance code knowledge graph server implementing MCP, indexing codebases into a structured AST knowledge graph with semantic search, call graph traversal, and HTTP route tracing.3,783 npm75MIT
- FlicenseNot gradedqualityDmaintenanceAn in-memory knowledge graph MCP server that gives coding agents structural and semantic recall over codebases by indexing Python source, ADR documents, and project configuration, exposing 7 tools for search, traversal, context retrieval, and natural-language Q&A.-
- FlicenseNot gradedqualityBmaintenanceMCP server for indexing source code from repositories into a Neo4j graph database and enabling Graph RAG-based search and traversal of functions via natural language queries.-
- AlicenseAqualityBmaintenanceMCP server for Neo4j that provides abstract graph operations for LLMs, enabling safe and consistent interaction with Neo4j databases through tools like search, insert, update, delete, and schema introspection.8MIT