接続の確立
The CData Code Assist MCP for Neo4j defines each connection to Neo4j as a named configuration that an MCP Client (such as Claude Desktop) can use when sending natural language queries.
You create and manage these configurations using the CData Code Assist MCP Configuration Tool. The tool automatically handles formatting, storage, and registration with MCP clients.
Understanding Connection Configurations
Each connection configuration is stored in a .mcp file. This file includes the details needed to initialize the connector when an MCP Client starts a session.
- On Windows, configuration files are stored in "~/AppData/Roaming/CData/Neo4j Data Provider/".
- On macOS, configuration files are stored in "~/Library/Application Support/CData/Neo4j Data Provider/".
The .mcp file is a text file that contains a list of connection properties and a timestamp. For example:
#Tue May 20 15:48:40 EDT 2025 AuthScheme=Basic User=myUser Password=myPassword Security Token=myToken
The configuration tool handles these settings automatically. Each saved configuration enables an MCP client to launch a dedicated MCP server instance with the correct connector and options. Manual file editing is not required.
Neo4j への接続
Neo4j に接続するには、以下のオプションがあります。
Neo4j AuraDB に接続する場合は、Query API を使用する必要があります。
セルフホスト型のNeo4j に接続する場合、バージョンに応じてQuery API とHTTP API を選択できます。
セルフホスト Neo4j への接続
Query API
Query API 経由でNeo4j に接続するには、次の接続プロパティを設定します。- API:Query に設定。
- Server:Neo4j インスタンスをホスティングしているサーバー。サーバー名やアドレスの前にHTTP やHTTPS のプロトコルの接頭辞を付加することも可能です。
- Port:Neo4j サービスが稼働しているポート。セルフマネージドインスタンスでは、Query API のデフォルトのポートは7474 です。HTTPS で接続する場合は、Server で指定したNeo4j インスタンスのHTTPS ポートを指定してください。
- User:Neo4j インスタンスを使用しているユーザーのユーザー名。
- Password:Neo4j インスタンスを使用しているユーザーのパスワード。
- Database:Neo4j インスタンスで対象とするデータベース。デフォルトはNeo4j です。
HTTP API
HTTP API 経由でNeo4j に接続するには、次の接続プロパティを設定します。- API:HTTP に設定。
- Server:Neo4j インスタンスをホスティングしているサーバー。サーバー名やアドレスの前にHTTP やHTTPS のプロトコルの接頭辞を付加することも可能です。
- Port:Neo4j サービスが稼働しているポート。プロバイダーは、デフォルトでHTTP 7474 ポートに接続します。HTTPS で接続する場合は、Server で指定したNeo4j インスタンスのHTTPS ポートを指定してください。
- User:Neo4j インスタンスを使用しているユーザーのユーザー名。
- Password:Neo4j インスタンスを使用しているユーザーのパスワード。
- Database:Neo4j インスタンスで対象とするデータベース。デフォルトはNeo4j です。