gpkg-mcp
Click on "Install 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: Neo4j GraphRAG MCP Server
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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/truongtnn404/gpkg-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server