Graforest MCP
Enables the creation, population, and management of knowledge graphs hosted on Neo4j databases, including tools for provisioning graph projects, performing bulk data writes, and executing complex graph traversals and searches.
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., "@Graforest MCP Create a knowledge graph about organic chemistry and populate it from my notes"
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.
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 relationshipsThe AI agent handles intelligence (entity extraction, reasoning). Graforest handles data (storage, search, traversal).
Installation
pip install graforest-mcpQuick 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/mcp13 Tools
Provisioning (3 tools)
Tool | Description |
| Provision a new knowledge graph (Neo4j) |
| List all graph projects |
| Delete a graph project permanently |
Data Write (2 tools)
Tool | Description |
| Bulk create entities (max 500/batch) |
| Bulk create relationships (max 500/batch) |
Data Read (6 tools)
Tool | Description |
| Full-text search across all node fields |
| Get entity types, relationship types, and fields |
| Node and relationship counts by type |
| Walk connections from any node |
| List entities by type (paginated) |
| Get a single entity by ID |
Ingestion (1 tool)
Tool | Description |
| Prepare text for the 3-call extraction workflow |
Utility (1 tool)
Tool | Description |
| 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 instructionsLLM 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-mcpType:
logicblokRepo:
https://github.com/graforest/graforest-mcpDockerfile:
Dockerfile(root of repo)
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 |
|
Domain |
|
Port |
|
TLS | Auto-provisioned by cert-manager |
Dockerfile
The included Dockerfile meets the LogicBlok module contract:
Port 8000
/healthendpointNon-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 |
| Yes (STDIO) | — | Your Graforest API key |
| No |
| Transport mode: |
| No |
| HTTP server port |
| No |
| HTTP server bind address |
Support
Website: graforest.ai
Documentation: graforest.ai/docs
Email: support@graforest.ai
Available Tools
13 toolsadd_knowledge_nodesAdd Knowledge NodesA
Bulk create entities in the knowledge graph. The LLM extracts entities from content and provides them here. Each entity needs an entity_id (kebab-case), entity_type (matching schema — e.g., 'Topic', 'Article', 'Author', 'Concept'), and properties dict matching that type's schema fields.
Use get_knowledge_schema first to see available entity types and their fields.
Inputs: project_code (required), entities (required), environment.
add_knowledge_relationshipsAdd Knowledge RelationshipsA
Bulk create relationships between entities in the knowledge graph. Each relationship needs from_id, to_id (matching existing entity_ids), rel_type (matching schema — e.g., 'AUTHORED', 'COVERS', 'REFERENCES'), and optional properties.
Use get_knowledge_schema first to see available relationship types.
Inputs: project_code (required), relationships (required), environment.
create_knowledge_projectCreate Knowledge Graph ProjectA
Provision a new knowledge graph project. Creates a Neo4j graph database with a knowledge-optimized schema (Topics, Articles, Authors, Concepts) and deploys it to staging. May take 30-60 seconds.
Inputs: name (required), description.
delete_knowledge_projectDelete Knowledge Graph ProjectADestructive
Delete a graph project and ALL its data. DESTRUCTIVE — cannot be undone.
Inputs: project_id (required).
fetch_url_contentFetch URL ContentARead-onlyIdempotent
Scrape a URL and extract clean text content. Returns the text for the LLM to read, extract entities from, and then call add_knowledge_nodes/relationships. Also returns metadata (title, author, date).
Inputs: url (required).
get_knowledge_entityGet Knowledge EntityARead-onlyIdempotent
Get a single entity by type and ID, with all properties.
Inputs: project_code (required), entity_type (required), entity_id (required), environment.
get_knowledge_schemaGet Knowledge Graph SchemaARead-onlyIdempotent
Get the full schema — entity types with fields, relationship types with from/to mappings. CALL THIS FIRST before adding nodes or relationships to understand what types and fields are available.
Inputs: project_code (required), environment.
get_knowledge_statisticsGet Knowledge Graph StatisticsARead-onlyIdempotent
Get node/relationship counts broken down by type. Useful for understanding the graph's size and composition.
Inputs: project_code (required), environment.
ingest_text_contentIngest Text ContentARead-onlyIdempotent
BATCH INGESTION — the fast way to populate a knowledge graph.
Provide a large block of text (up to 500k chars) and the project code. This tool fetches the graph schema and returns structured extraction instructions. Then call add_knowledge_nodes and add_knowledge_relationships with the extracted data.
3-CALL WORKFLOW:
ingest_text_content(project_code, text) → schema + instructions
add_knowledge_nodes(project_code, entities) → bulk create nodes
add_knowledge_relationships(project_code, relationships) → bulk create edges
This replaces per-entity approach. Extract EVERYTHING from the text in one pass, then write it all in two bulk calls.
Inputs: project_code (required), text_content (required), source_title, source_url, +1 more.
list_knowledge_entitiesList Knowledge EntitiesARead-onlyIdempotent
List entities of a specific type. Use get_knowledge_schema first to see available entity types.
Inputs: project_code (required), entity_type (required), limit, offset, +1 more.
list_knowledge_projectsList Knowledge Graph ProjectsBRead-onlyIdempotent
List all graph projects. Shows project IDs, names, codes, and status.
Inputs: no named parameters.
search_knowledge_graphSearch Knowledge GraphARead-onlyIdempotent
Full-text search across all string properties in the knowledge graph. Returns matching nodes with their types, properties, and relevance scores.
Inputs: project_code (required), query (required), environment.
traverse_knowledge_graphTraverse Knowledge GraphBRead-onlyIdempotent
Walk the graph from a starting entity, following relationships up to a specified depth. Returns connected nodes and relationships.
Inputs: project_code (required), start_entity_type (required), start_entity_id (required), max_depth, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Each tool has a clearly distinct purpose with no overlap. For example, add_knowledge_nodes creates entities, add_knowledge_relationships creates connections, fetch_url_content scrapes web content, and traverse_knowledge_graph walks the graph—all serving unique functions. The descriptions explicitly differentiate tools like ingest_text_content (batch processing) versus per-entity methods, preventing confusion.
Tool names follow a highly consistent verb_noun pattern throughout, all using snake_case. Verbs like add, get, list, create, delete, fetch, ingest, search, and traverse are applied predictably to nouns like knowledge_nodes, knowledge_entity, or knowledge_graph. There are no deviations or mixed conventions, making the set easy to navigate.
With 13 tools, the count is well-scoped for managing a knowledge graph system, covering project lifecycle, data ingestion, entity/relationship CRUD, schema inspection, and graph traversal. Each tool earns its place by addressing specific needs like bulk operations, statistics, or search, without being excessive or insufficient for the domain.
The tool surface provides complete coverage for knowledge graph operations, including project management (create/delete/list), schema inspection, entity and relationship CRUD, batch and per-item ingestion, content fetching, statistics, search, and traversal. There are no obvious gaps; agents can perform end-to-end workflows from setup to data exploration without dead ends.
Related MCP Connectors
Company brain for AI agents — temporal knowledge graph search, exploration, and durable memory.
Governed map of company knowledge for humans + agents.
Shared long-term memory for AI agents: save and recall context as a searchable knowledge graph.
Persistent knowledge graph for AI agents. Remember, recall, and forget facts.