ローカル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>"
]
}
}
Related Servers
IMF Data MCP
Retrieve and process economic data from the International Monetary Fund (IMF) API, including datasets, time series, indicators, and countries.
Database
Universal database MCP server supporting multiple database types including PostgreSQL, Redshift, CockroachDB, MySQL, RDS MySQL, Microsoft SQL Server, BigQuery, Oracle DB, and SQLite
CData SAP HANA XS Advanced Server
A read-only MCP server for SAP HANA XS Advanced, powered by the CData JDBC Driver.
USDA Nutrition MCP Server
Access nutrition information for over 600,000 foods from the USDA FoodData Central database.
OPTIMADE MCP Server
A configurable MCP server for the OPTIMADE API, allowing custom filters and endpoints for materials science databases.
MCP MySQL Server
An MCP server based on Spring AI that executes arbitrary SQL queries against a configured MySQL database.
MCP Persistence
MCP Persistence: your AI Agent now creates and manages databases on its own
CData Avalara AvaTax
A read-only MCP server for querying live Avalara AvaTax data. Powered by the CData JDBC Driver.
Keboola
Build robust data workflows, integrations, and analytics on a single intuitive platform.
CData API Driver MCP Server
A read-only MCP server for querying live data from various APIs using the CData JDBC Driver for API Driver.