Graforest MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add -e "GRAFOREST_API_KEY=${GRAFOREST_API_KEY}" graforest-mcp -- npx @smithery/cli install @graforest/mcp
Required:GRAFOREST_API_KEY
README.md

Build knowledge graphs with AI.

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:

  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.


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

  1. Log in at infra.rationalbloks.com
  2. Select the Graforest project → ModulesDeploy Module
  3. Settings:
    • Name: graforest-mcp
    • Type: logicblok
    • Repo: https://github.com/graforest/graforest-mcp
    • Dockerfile: Dockerfile (root of repo)
  4. Set environment variables:
    • GRAFOREST_RB_API_KEY — Graforest service account key (rb_sk_...)
    • RATIONALBLOKS_MCP_URLhttps://logicblok.rationalbloks.com
    • TRANSPORThttp
    • HOST0.0.0.0
  5. 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 m

Tools (13)

create_knowledge_projectProvision a new knowledge graph (Neo4j)
list_knowledge_projectsList all graph projects
delete_knowledge_projectDelete a graph project permanently
add_knowledge_nodesBulk create entities (max 500/batch)
add_knowledge_relationshipsBulk create relationships (max 500/batch)
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
ingest_text_contentPrepare text for the 3-call extraction workflow
fetch_url_contentScrape a URL and return clean text

Environment Variables

GRAFOREST_API_KEYrequiredAPI key for Graforest service

Configuration

claude_desktop_config.json
{"mcpServers": {"graforest": {"command": "uvx", "args": ["graforest-mcp"], "env": {"GRAFOREST_API_KEY": "gf_sk_your_key_here"}}}}

Try it

Create a knowledge graph about organic chemistry and populate it from my notes.
Search the knowledge graph for all entities related to 'mitochondria'.
List all knowledge projects currently available in my account.
Traverse the knowledge graph starting from the entity with ID 'chem-001'.
Ingest the content from this URL and extract the key entities into my graph.

Frequently Asked Questions

What are the key features of Graforest MCP?

Automated knowledge graph provisioning without manual database setup. Bulk entity and relationship creation with batch processing. Full-text search and graph traversal capabilities. Integrated text ingestion workflow for AI-driven extraction. Support for scraping and cleaning web content for graph population.

What can I use Graforest MCP for?

Building a searchable knowledge base from personal research notes. Mapping complex relationships between entities in scientific literature. Organizing unstructured web content into a structured graph database. Enabling AI agents to reason over custom domain-specific knowledge.

How do I install Graforest MCP?

Install Graforest MCP by running: pip install graforest-mcp

What MCP clients work with Graforest MCP?

Graforest MCP works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Graforest MCP docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare