ローカルNeo4jコンテナ
Manages personal knowledge using a local Neo4j container, with data imported from JSON files.
ローカルNeo4jコンテナ
-
JSONファイルを作成
persons.json, domains.json, observations.json, relations.json をneo4j-container/import/ディレクトリに配置します。 -
Neo4jコンテナを起動
cd neo4j-container docker compose up -d
-
コンテナに入る
docker exec -it neo4j-container-neo4j-1 /bin/bash -
Cypher Shellでファイルを実行
cypher-shell -u neo4j -p mypassword -
登録結果の確認
cypher-shell -u neo4j -p mypassword "MATCH (n) RETURN n LIMIT 50;"
importフォルダのJSONデータ登録手順
- Neo4jコンテナに入る
# PowerShellの場合
# (コンテナ名は docker ps で確認)
docker exec -it neo4j-container-neo4j-1 /bin/bash
- Cypher ShellでJSONを登録(例: persons.json)
cat /import/persons.cypher | cypher-shell -u neo4j -p mypassword
cat /import/domains.cypher | cypher-shell -u neo4j -p mypassword
cat /import/relations.cypher | cypher-shell -u neo4j -p mypassword
cat /import/observations.cypher | cypher-shell -u neo4j -p mypassword
※<パスワード>はneo4jのパスワードに置き換えてください。
- 登録結果の確認**
cypher-shell -u neo4j -p mypassword "MATCH (n) RETURN n LIMIT 50;"
Claude Desktopでの実行方法
まず、Pythonのmcp-neo4j-memoryモジュールをインストールしておきます。
pip install mcp-neo4j-memory
claude_desktop_config.json
"mcpServers": {
"neo4j": {
"command": "uvx",
"args": [
"[email protected]",
"--db-url",
"neo4j+s://xxxx.databases.neo4j.io",
"--username",
"<your-username>",
"--password",
"<your-password>"
]
}
}
Servidores relacionados
SVM-MCP
Interact with SOON and other SVM-based blockchains. Check balances, fetch recent transactions, and view token holdings.
OpenAlex Author Disambiguation
Disambiguate authors and resolve institutions using the OpenAlex.org API.
MemFlow MCP
Enables Large Language Models to store and retrieve persistent memories with intelligent search capabilities.
MySQL MCP Server
Provides direct access to MySQL databases, allowing AI agents to execute SQL queries and manage database content.
Oracle Database
Access and query an Oracle database using the cx_Oracle driver.
OpenSearch MCP Server
An MCP server for interacting with OpenSearch clusters, configured via environment variables.
PostgreSQL Full Access MCP Server
A full-access PostgreSQL server for MCP with read/write capabilities and enhanced schema metadata.
Toronto Open Data Tools
Query, analyze, and retrieve datasets from Toronto's CKAN-powered open data portal.
Atlan
Official MCP Server from Atlan which enables you to bring the power of metadata to your AI tools
Kusto MCP Server
Provides access to Azure Data Explorer (ADX) clusters, requiring Azure credentials for configuration.