buddy
Compatible with Gemini CLI for knowledge graph management via 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., "@buddycreate a node about the new authentication flow"
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.
buddy — Agent-first Knowledge Graph
A graph-based knowledge substrate for LLMs and AI agents, with a human-readable dashboard.
buddy is an MCP server that provides 25 tools for managing a knowledge graph. Agents store concepts, facts, decisions, templates, and configs as Nodes, connected by typed Edges. Humans see everything through a server-rendered dashboard.
Features
Unified Node Model — One entity type replaces 5 (knowledge, documents, memories, variables, skills)
Knowledge Graph — Typed edges between nodes, projects, and tasks with a validation matrix
25 MCP Tools — CRUD, full-text search (FTS5), graph traversal, context loading
Health Score — Per-project score (A-F) based on momentum, deadlines, freshness
Dashboard — Node browser, graph visualization (D3.js), project hub, activity log
OAuth 2.1 — PKCE enforced, compatible with Claude.ai, Gemini CLI, Mistral Le Chat
Encryption — AES-256-GCM for
secretnodes via HKDF key derivationGraph Integrity — Automatic validation, orphan detection, health score impact
Token-optimized —
context_loaddesigned for minimal token usage (<800 tokens)
Related MCP server: kg-memory-mcp
Quick Start
# 1. Clone
git clone git@github.com:enki-run/buddy.git && cd buddy
# 2. Install + configure
npm install
cp wrangler.toml.example wrangler.toml
# 3. Create D1 database
wrangler d1 create buddy
# → Copy database_id into your wrangler.toml
# 4. Create KV namespace
wrangler kv namespace create CACHE
# → Copy id into your wrangler.toml
# 5. Run migrations
npm run migrate
# 6. Set token (min 32 hex chars)
openssl rand -hex 32
wrangler secret put BUDDY_TOKEN
# 7. Deploy
npm run deploySee docs/installation.md for custom domain, rate limiting, and local development setup.
MCP Configuration
{
"mcpServers": {
"buddy": {
"url": "https://buddy.yourdomain.com/mcp",
"headers": { "Authorization": "Bearer <BUDDY_TOKEN>" }
}
}
}OAuth 2.1 discovery: /.well-known/oauth-authorization-server
Tool Filtering
Limit exposed tools via ?tools= query parameter:
/mcp?tools=nodes — Node + Edge tools only
/mcp?tools=tasks — Task tools only
/mcp?tools=nodes,tasks — Combination
/mcp — All 25 toolsNode Types
Type | Description | Replaces (v2) |
| Conceptual knowledge | Knowledge |
| Atomic, verifiable facts | Memory |
| Architecture decisions, ADRs | Document |
| Methods, prompt templates, workflows | Skill |
| Encrypted credentials (AES-256-GCM) | Variable (secret) |
| Configuration values, URLs, flags | Variable (plain) |
All node types support an optional url field for linking to external resources (product pages, docs, RFCs, etc.). Nodes with URLs appear as clickable links in the project sidebar.
Edge Relations
Relation | Allowed between |
| Node → Node |
| Any combination |
| Node → Node |
| Node/Project → Node |
| Node → Node |
| Node → Node |
| Node/Task → Node |
Dashboard
Route | Description |
| Home — health score, attention tasks, drafts, activity, stats |
| Node browser — filter by type, context, status |
| Node detail — rendered markdown, edges, integrity |
| Project hub — tasks, related nodes, health |
| Knowledge graph — D3.js force-directed, zoom/pan |
| Activity log with security audit trail |
System fonts (no external requests). Dark/light theme. Zoom S/M/L.
Documentation
Installation Guide — Full setup including rate limiting
Cloudflare API Token — Required permissions
MCP Tools Reference — All 25 tools with examples
Graph Integrity — Validation matrix, health score
Token Rotation — BUDDY_TOKEN rotation, secret re-encryption
Tech Stack
Runtime: Cloudflare Workers (V8 Isolates)
Database: Cloudflare D1 (SQLite + FTS5)
Cache: Cloudflare KV (60s TTL)
Framework: Hono v4
MCP: @modelcontextprotocol/sdk v1.27
MCP Provider Compatibility
buddy works natively with every major MCP-compatible AI provider:
Provider | Connection | Status |
Claude (Anthropic) | OAuth 2.1 (Claude.ai), Bearer token (Claude Code), MCP config (Claude Desktop) | Fully supported on all platforms |
Mistral (Le Chat) | OAuth 2.1, sovereign European AI | Natively compatible |
Gemini CLI (Google) | OAuth 2.1 | Natively compatible |
Any MCP client | Bearer token or OAuth 2.1 with PKCE | Streamable HTTP transport |
buddy vs. Alternatives
Feature | buddy | Mem0 | Zep | Linear |
Graph-based (Nodes + Edges) | Yes | No | No | No |
MCP-native | Yes | Yes | Yes | No |
Self-hosted (Cloudflare) | Yes | Cloud | Cloud | Cloud |
Agent-first design | Yes | Yes | Yes | No |
Dashboard included | Yes | No | No | Yes |
Encryption (secrets) | Yes | No | No | No |
Open Source | Apache 2.0 | Partial | Partial | No |
Roadmap
buddy Team — Multi-user edition with shared knowledge graphs. Scopes (personal / team / org), role-based access (admin / member / reader), optimistic locking for concurrent edits. Single codebase with --mode=team flag.
buddy On-Prem — Docker self-hosted deployment for environments where data must not leave the network. SQLite-based, no cloud dependencies. Same MCP interface, same dashboard.
Signal Service — External ingest endpoint for GitHub webhooks, CI/CD events, and monitoring alerts. Separate microservice that feeds into buddy via MCP after LLM-based relevance filtering.
Contributing
See CONTRIBUTING.md for architecture, dev setup, and how to add tools or views.
Security
See SECURITY.md for reporting vulnerabilities.
License
Apache 2.0 — see LICENSE
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
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/enki-run/buddy'
If you have feedback or need assistance with the MCP directory API, please join our Discord server