MG

michabbb/graphiti-mcp-but-working

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

11 stars 3 forks 品質 79 トレンド 12Apache-2.0

グラフィティは、動的環境で動作するAIエージェントのために特別に調整され、温度的に認識された知識グラフを構築し、クエリするためのフレームワークです.

概要

グラフィティは、動的環境で動作するAIエージェントのために特別に調整され、温度的に認識された知識グラフを構築し、クエリするためのフレームワークです。 従来の検索対象生成(RAG)方式とは異なり、Graphitiはユーザーインタラクション、構造化および非構造化された企業データ、および外部情報を一貫性のあるクエリ可能なグラフに継続的に統合します。 フレームワークは、データの更新、効率的な検索、および完全なグラフの応答を必要としない正確な履歴クエリをサポートし、インタラクティブでコンテキストアウェアのAIアプリケーションを開発するのに適しています。 これは、グラフィティのモデルコンテキストプロトコル(MCP)サーバーの実装を強化しています。 MCP サーバーは、MCP プロトコルを介して Graphiti の主要機能を公開し、AI アシスタントが Graphiti の知識グラフ機能とやり取りできるようにします。 この強化バージョンには、元の実装に対するいくつかの重要な改善が含まれています。 1.

概要(AI 翻訳)

グラフィティは、AIエージェント向けに特別に調整された、温度測定用知識グラフの構築とクエリを行うためのフレームワークです。 動的環境で動作します。 伝統の検索方法とは異なり、グラフティ ユーザーのインタラクション、構造化および非構造化された企業データ、および外部情報を継続的に統合 一貫性のある、クエリ可能なグラフ。 フレームワークは、増分データの更新、効率的な検索、および正確な履歴をサポートしています 完全なグラフの応答を必要としない問い合わせ、対話型、コンテキスト型AIの開発に適しています アプリケーション。

これは、グラフィティのモデルコンテキストプロトコル(MCP)サーバーの実装を強化しています。 MCP サーバー を公開 MCP プロトコルによる Graphiti の主要機能により、AI アシスタントが Graphiti の知識とやり取りできるように グラフ機能。

このフォークのキー強化

この強化バージョンには、元の実装に対するいくつかの重要な改善が含まれています。

1.最新のGraphiti Core Compatibility - すべての最新機能と改良でグラフティコアの現在のバージョンを使用する 2.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Graphiti MCP Server - Enhanced Fork

Graphiti is a framework for building and querying temporally-aware knowledge graphs, specifically tailored for AI agents operating in dynamic environments. Unlike traditional retrieval-augmented generation (RAG) methods, Graphiti continuously integrates user interactions, structured and unstructured enterprise data, and external information into a coherent, queryable graph. The framework supports incremental data updates, efficient retrieval, and precise historical queries without requiring complete graph recomputation, making it suitable for developing interactive, context-aware AI applications.

This is an enhanced Model Context Protocol (MCP) server implementation for Graphiti. The MCP server exposes Graphiti’s key functionality through the MCP protocol, allowing AI assistants to interact with Graphiti’s knowledge graph capabilities.

Key Enhancements in This Fork

This enhanced version includes several important improvements over the original implementation:

  1. 🚀 Latest Graphiti Core Compatibility - Uses the current version of graphiti-core with all latest features and improvements
  2. 🤖 GPT-5, O1, O3 Model Support - Proper handling of OpenAI’s reasoning models with automatic parameter adjustment (disables temperature, reasoning, and verbosity parameters)
  3. 🔒 Token-Based Authentication - Production-ready nonce token authentication system enabling secure public deployment
  4. 📊 Queue Monitoring Tool - New get_queue_status tool to monitor episode processing queues, showing pending tasks, active workers, and jobs currently being processed
  5. 💾 Redis-Based Persistent Queues - Worker queues backed by Redis with BRPOPLPUSH pattern for crash recovery and graceful shutdown support (SIGTERM/SIGINT handlers)
  6. 🛡️ Enhanced Security - Pure ASGI middleware-based authentication with constant-time token comparison to prevent timing attacks
  7. 🔐 Password-Protected Graph Clearing - clear_graph tool now requires password authentication via CLEAR_GRAPH_PASSWORD environment variable
  8. 🌐 DNS Rebinding Protection - ALLOWED_HOSTS configuration for secure external access when binding to 0.0.0.0
  9. 📋 New list_group_ids Tool - Discover and manage all group IDs across nodes and relationships in your knowledge graph
  10. 🗑️ Atomic Group Deletion - New delete_everything_by_group_id tool for complete group removal in a single call (episodes, nodes, and edges)
  11. 🔇 Telemetry Control - Automatic disabling of telemetry for privacy-focused deployments (set before graphiti_core imports)
  12. ⚡ Simplified Dependencies - Removed Azure OpenAI dependencies for easier setup and deployment
  13. 🌐 MCP 2025-06-18 Support - Uses the new Streamable HTTP transport standard (with SSE fallback for legacy clients)
  14. 📦 Reproducible Builds - Tracked uv.lock file ensures consistent dependency versions across all deployments
GitHub で README 全文を見る

インストール

npx mcp-remote http://localhost:8000/mcp" // Use /mcp for Streamable HTTP or /sse for legacy SSE
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "graphiti-memory": { "transport": "stdio", "command": "/Users/<user>/.local/bin/uv", "args": [ "run", "--isolated", "--directory", "/Users/<user>/dev/graphiti-mcp-but-working", "--project", ".", "python", "-m", "graphiti_mcp_server", "--transport", "stdio" ], "env": { "NEO4J_URI": "bolt://localhost:7687", "NEO4J_USER": "neo4j", "NEO4J_PASSWORD": "password", "OPENAI_API_KEY": "sk-XXXXXXXX", "MODEL_NAME": "gpt-4.1-mini" } } } }