Graforest MCP Server — Build, populate, and query Knowledge Graphs with AI. 13 tools for knowledge ingestion, search, traversal, and graph management.
Project description
Graforest MCP Server
Build knowledge graphs with AI. 13 tools for creating, populating, searching, and exploring knowledge graphs through the Model Context Protocol.
What Is This?
Graforest MCP lets AI agents (Claude, Cursor, VS Code, etc.) build and query knowledge graphs. No database setup. No Neo4j config. Just tell your AI agent what you want to know.
"Create a knowledge graph about organic chemistry and populate it from my notes"
→ 2 minutes later: Searchable knowledge graph with entities and relationships
The AI agent handles intelligence (entity extraction, reasoning). Graforest handles data (storage, search, traversal).
Installation
pip install graforest-mcp
Quick Start
1. Get Your API Key
Visit graforest.ai/settings and create an API key (gf_sk_...).
2. Configure Your AI Agent
VS Code — Add to .vscode/mcp.json:
{
"servers": {
"graforest": {
"command": "uvx",
"args": ["graforest-mcp"],
"env": {
"GRAFOREST_API_KEY": "gf_sk_your_key_here"
}
}
}
}
Cursor — Add to .cursor/mcp.json:
{
"mcpServers": {
"graforest": {
"command": "uvx",
"args": ["graforest-mcp"],
"env": {
"GRAFOREST_API_KEY": "gf_sk_your_key_here"
}
}
}
}
Claude Desktop — Add to claude_desktop_config.json:
{
"mcpServers": {
"graforest": {
"command": "uvx",
"args": ["graforest-mcp"],
"env": {
"GRAFOREST_API_KEY": "gf_sk_your_key_here"
}
}
}
}
Smithery:
npx @smithery/cli install @graforest/mcp
13 Tools
Provisioning (3 tools)
| Tool | Description |
|---|---|
create_knowledge_project |
Provision a new knowledge graph (Neo4j) |
list_knowledge_projects |
List all graph projects |
delete_knowledge_project |
Delete a graph project permanently |
Data Write (2 tools)
| Tool | Description |
|---|---|
add_knowledge_nodes |
Bulk create entities (max 500/batch) |
add_knowledge_relationships |
Bulk create relationships (max 500/batch) |
Data Read (6 tools)
| Tool | Description |
|---|---|
search_knowledge_graph |
Full-text search across all node fields |
get_knowledge_schema |
Get entity types, relationship types, and fields |
get_knowledge_statistics |
Node and relationship counts by type |
traverse_knowledge_graph |
Walk connections from any node |
list_knowledge_entities |
List entities by type (paginated) |
get_knowledge_entity |
Get a single entity by ID |
Ingestion (1 tool)
| Tool | Description |
|---|---|
ingest_text_content |
Prepare text for the 3-call extraction workflow |
Utility (1 tool)
| Tool | Description |
|---|---|
fetch_url_content |
Scrape a URL and return clean text |
3-Call Ingestion Workflow
The recommended way to populate a knowledge graph from text:
ingest_text_content(project_code, text)→ Returns the graph schema + extraction instructions- LLM extracts all entities and relationships from the text (guided by the instructions)
add_knowledge_nodes+add_knowledge_relationships→ Bulk write everything
The AI does the thinking. Graforest stores the results.
Cloud Deployment (LogicBlok Module)
Graforest MCP deploys as a LogicBlok module through the RationalBloks platform. No kubectl, Docker CLI, or cluster access needed.
Deploy via RationalBloks UI
- Log in at infra.rationalbloks.com
- Select the Graforest project → Modules → Deploy Module
- Settings:
- Name:
graforest-mcp - Type:
logicblok - Repo:
https://github.com/graforest/graforest-mcp - Dockerfile:
Dockerfile(root of repo)
- Name:
- Set environment variables:
GRAFOREST_RB_API_KEY— Graforest service account key (rb_sk_...)RATIONALBLOKS_MCP_URL—https://logicblok.rationalbloks.comTRANSPORT—httpHOST—0.0.0.0
- Deploy. The platform handles: clone → build → push → K8s → TLS.
What the Platform Creates
| Resource | Value |
|---|---|
| Namespace | customer-{project_code}-staging |
| Domain | {module_code}-mod.customersblok.rationalbloks.com |
| Port | 8000 with /health probes |
| TLS | Auto-provisioned by cert-manager |
Dockerfile
The included Dockerfile meets the LogicBlok module contract:
- Port 8000
/healthendpoint- Non-root user (UID 1000)
- Multi-stage build with UV dependency caching
Architecture
AI Agent → graforest-mcp → Graph APIs (Neo4j databases)
→ RationalBloks API (infrastructure provisioning)
- No AI inside the MCP server — the LLM is the intelligence, Graforest is the data layer
- Dual transport: STDIO (local IDEs) + HTTP/SSE (cloud deployment)
- API key auth:
gf_sk_prefix for all Graforest keys
Resources & Prompts
Resources:
graforest://docs/getting-started— Quick start guidegraforest://docs/knowledge-graph— Knowledge graph concepts
Prompts:
ingest-content— Guided content ingestion workflowexplore-graph— Guided graph exploration workflow
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
GRAFOREST_API_KEY |
Yes (STDIO) | — | Your Graforest API key |
TRANSPORT |
No | stdio |
Transport mode: stdio or http |
PORT |
No | 8000 |
HTTP server port |
HOST |
No | 0.0.0.0 |
HTTP server bind address |
Support
- Website: graforest.ai
- Documentation: graforest.ai/docs
- Email: support@graforest.ai
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file graforest_mcp-0.1.1.tar.gz.
File metadata
- Download URL: graforest_mcp-0.1.1.tar.gz
- Upload date:
- Size: 23.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79f558dbbc092889b1d0362bd21d67011703e7896006120e63b2d8f03bdfccf3
|
|
| MD5 |
a69b344e5b0449221977cf8f53263ecd
|
|
| BLAKE2b-256 |
26acf6ae61f2c53892ddd51edd7243f3abaa7c8555aac232781782b353be0d91
|
File details
Details for the file graforest_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: graforest_mcp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 28.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5f089ca0380573de6bc59b75ffe9d39e0bb67fbede438cb9dbd5fd2d7f5864f
|
|
| MD5 |
bba4bcc416bd9cf294fd523dd06d9c6a
|
|
| BLAKE2b-256 |
d3f8402ea92704ea720ebc0327da9b4314df492dc82a22d6ec93ad744987c86e
|