Skip to main content
Glama

コグニーMCPサーバー

手動でインストールする

MCP サーバー プロジェクト

  1. cogneeリポジトリをクローンする

  2. 依存関係をインストールする

brew install uv
cd cognee-mcp
uv sync --dev --all-extras --reinstall
  1. venvをアクティブにする

source .venv/bin/activate
  1. 新しいサーバーを Claude 構成に追加します。

ファイルはここにあります: ~/Library/Application\ Support/Claude/

cd ~/Library/Application\ Support/Claude/

claude_desktop_config.json が存在しない場合は、このフォルダーに作成する必要があります。以下のファイルにパスと LLM API キーを必ず追加してください。Nano などの任意のエディターを使用してください。

nano claude_desktop_config.json
{
	"mcpServers": {
		"cognee": {
			"command": "/Users/{user}/cognee/.venv/bin/uv",
			"args": [
        "--directory",
        "/Users/{user}/cognee/cognee-mcp",
        "run",
        "cognee"
      ],
      "env": {
        "ENV": "local",
        "TOKENIZERS_PARALLELISM": "false",
        "LLM_API_KEY": "sk-"
      }
		}
	}
}

Claude デスクトップを再起動します。

Smithery経由でインストール

Smithery経由で Claude Desktop 用の Cognee を自動的にインストールするには:

npx -y @smithery/cli install cognee --client claude

server.py で cognify ツールを定義し、Claude デスクトップを再起動します。

デバッガーを使用するには、次を実行します。

mcp dev src/server.py

タイムアウトが経過したインスペクターを開きます:

http://localhost:5173?timeout=120000

cognee の開発中に新しい変更を適用するには、次の操作を行う必要があります。

  1. コニーフォルダ内のpoetry lock

  2. uv sync --dev --all-extras --reinstall

  3. mcp dev src/server.py

発達

ローカル cognee ビルドを使用するには、cognee リポジトリのルートで実行します。

poetry build -o ./cognee-mcp/sources

ビルドプロセスが完了したら、 cognee-mcp/pyproject.toml内のcogneeライブラリの依存関係を次のように変更します。

cognee[postgres,codegraph,gemini,huggingface]==0.1.38

に

cognee[postgres,codegraph,gemini,huggingface]

その後、同じファイル ( cognee-mcp/pyproject.toml ) に次のスニペットを追加します。

[tool.uv.sources]
cognee = { path = "sources/cognee-0.1.38-py3-none-any.whl" }

Available Tools

6 tools
call_toolA

Call a tool by name with the given arguments.

Use this to execute tools discovered via search_tools.

Inputs: name (required), arguments.

forgetB

Delete data from memory.

Can target a single data item, a specific dataset (by name or id), or everything the user owns. Removes data from the relational DB, graph DB, and vector DB.

Inputs: data_id, dataset, dataset_id, everything, +1 more. Returns: result

recallA

Search memory with auto-routing and session awareness.

When session_id is provided without datasets or search_type, searches session cache first by keyword matching. Falls through to the permanent knowledge graph if no session results match.

Auto-routing picks the best search strategy when search_type is not specified.

Inputs: query (required), scope, top_k, datasets, +7 more. Returns: result

rememberA

Store data in memory.

Two modes depending on whether session_id is provided:

Without session_id (permanent memory): Runs the full add + cognify pipeline to ingest data and build the knowledge graph, then the self-improvement loop (improve) unless self_improvement=False.

With session_id (session memory): Stores the data in the session cache. Direct mode may also bridge it to the graph in the background; API mode uses typed cache entries and does not bridge to the graph. Omit session_id when the content should be stored as permanent graph memory.

Pass either data (text) or filename + content_base64 (a file upload, up to 10 MB), not both. File uploads are permanent-memory only and don't support session_id.

Inputs: data, filename, node_set, background, +6 more. Returns: result

search_toolsA

Search for tools using natural language.

Returns matching tool definitions ranked by relevance, in the same format as list_tools.

Inputs: query (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 6 tools

    Disambiguation4/5

    The tools have mostly distinct purposes: remember/forget handle storage, recall handles memory retrieval, code_search handles source-code graph queries, and search_tools/call_tool form a discovery-execution pair. There is some potential overlap between recall and code_search since both are search-like, but the descriptions clearly separate conversational memory from code structure.

    Naming Consistency3/5

    Names are readable and use snake_case, but the conventions are mixed: remember/forget/recall are single verbs, while call_tool and search_tools are verb_noun, and code_search is less clearly patterned. The set is still understandable, just not predictably uniform.

    Tool Count5/5

    Six tools is well-scoped for a memory and code-graph server. Each tool has a clear role, and the set avoids both thin coverage and unnecessary bulk.

    Completeness4/5

    The core memory lifecycle is covered through remember, recall, and forget, and code search plus tool discovery extend the surface appropriately. Minor gaps exist around explicit update/list semantics, but the main workflows appear supported.

    Maintenance

    ActivityActive
    ResponsivenessSyncing

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Persistent knowledge memory layer for AI agents. Hybrid semantic + full-text search with pgvector, code dependency graph with blast-radius impact analysis, and incremental indexing for 7 languages. In-process ONNX embeddings, no external API required.
      34
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides persistent knowledge graph memory for AI agents, enabling them to store, recall, and query facts about people, projects, and relationships across sessions.
      MIT
    • A
      license
      Not graded
      quality
      F
      maintenance
      Enables LLMs to store, search, and manage memories with hybrid semantic and keyword search using ChromaDB and Neo4j for persistent memory and knowledge graph capabilities.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Persistent AI memory server with hybrid search and embedded sync. Enables AI agents to store, retrieve, and manage information across sessions with temporal knowledge graph support.
      MIT