MCP Hub
Back to servers

Graforest MCP

Enables AI agents to build, populate, and search knowledge graphs by providing tools for entity extraction, relationship mapping, and graph traversal. It manages the underlying database infrastructure so users can create searchable knowledge bases from text through natural language commands.

Stars
1
Updated
Feb 28, 2026

Graforest MCP Server

Build knowledge graphs with AI. 13 tools for creating, populating, searching, and exploring knowledge graphs through the Model Context Protocol.

License Python PyPI

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)

ToolDescription
create_knowledge_projectProvision a new knowledge graph (Neo4j)
list_knowledge_projectsList all graph projects
delete_knowledge_projectDelete a graph project permanently

Data Write (2 tools)

ToolDescription
add_knowledge_nodesBulk create entities (max 500/batch)
add_knowledge_relationshipsBulk create relationships (max 500/batch)

Data Read (6 tools)

ToolDescription
search_knowledge_graphFull-text search across all node fields
get_knowledge_schemaGet entity types, relationship types, and fields
get_knowledge_statisticsNode and relationship counts by type
traverse_knowledge_graphWalk connections from any node
list_knowledge_entitiesList entities by type (paginated)
get_knowledge_entityGet a single entity by ID

Ingestion (1 tool)

ToolDescription
ingest_text_contentPrepare text for the 3-call extraction workflow

Utility (1 tool)

ToolDescription
fetch_url_contentScrape a URL and return clean text

3-Call Ingestion Workflow

The recommended way to populate a knowledge graph from text:

  1. ingest_text_content(project_code, text) → Returns the graph schema + extraction instructions
  2. LLM extracts all entities and relationships from the text (guided by the instructions)
  3. add_knowledge_nodes + add_knowledge_relationships → Bulk write everything

The AI does the thinking. Graforest stores the results.


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 guide
  • graforest://docs/knowledge-graph — Knowledge graph concepts

Prompts:

  • ingest-content — Guided content ingestion workflow
  • explore-graph — Guided graph exploration workflow

Environment Variables

VariableRequiredDefaultDescription
GRAFOREST_API_KEYYes (STDIO)Your Graforest API key
TRANSPORTNostdioTransport mode: stdio or http
PORTNo8000HTTP server port
HOSTNo0.0.0.0HTTP server bind address

Support

Reviews

No reviews yet

Sign in to write a review