MCP.so
登录

Neo4j MCP Server for Cursor

@ezedinff

基本信息

分类

开发工具

传输方式

stdio

作者

ezedinff

关于 Neo4j MCP Server for Cursor

A Cursor MCP (Model Context Protocol) server that enables seamless interaction with Neo4j databases directly from the Cursor IDE.

Neo4j MCP Server for Cursor 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "neo4j-mcp": {
      "command": "bun",
      "args": [
        "run",
        "index.ts"
      ]
    }
  }
}

Neo4j MCP Server for Cursor 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Neo4j MCP Server for Cursor?

The Neo4j MCP Server for Cursor is a Model Context Protocol server that allows users to interact with Neo4j databases directly from the Cursor IDE. It enables executing Cypher queries, retrieving database metrics, and monitoring connection status through standard MCP tools.

How to use Neo4j MCP Server for Cursor?

Clone the repository, install dependencies with Bun (v1.0.0+), and configure Neo4j credentials in a .env file. The server uses stdio transport and is launched by Cursor. Six tools are available: connect with explicit credentials, connect with environment variables, execute a Cypher query, get database information, get connection status, and disconnect. For testing, run bun run index.ts or ./run-mcp-server.sh.

Key features of Neo4j MCP Server for Cursor

  • Connect to local or remote Neo4j databases
  • Execute Cypher queries with optional parameters
  • Transform Neo4j data types to JavaScript objects
  • Retrieve database version, node counts, and labels
  • Monitor connection state and diagnostics
  • Manage credentials securely via environment variables

Use cases of Neo4j MCP Server for Cursor

  • Run Cypher queries to explore a graph database while coding
  • Inspect database schema (labels, relationship types) without leaving Cursor
  • Automate integration tests that interact with a Neo4j database
  • Monitor database health and connection status during development

常见问题

1

What are the prerequisites for using Neo4j MCP Server for Cursor?

Bun v1.0.0 or higher and a Neo4j database (local or remote) are required. A Docker Compose file is included to run Neo4j locally.

2

How do I connect to a Neo4j database?

You can connect using explicit credentials (URI, username, password) or by setting environment variables (`NEO4J_URI`, `NEO4J_USERNAME`, `NEO4J_PASSWORD`, `NEO4J_DATABASE`) in a `.env` file.

3

What transport does the server use?

The server uses stdio transport via the official MCP SDK, designed for seamless integration with Cursor’s MCP support.

4

Can I run the server outside of Cursor for testing?

Yes, you can run `bun run index.ts` or the provided shell script `./run-mcp-server.sh` to test the server manually.

5

How are credentials secured?

Credentials can be stored in a `.env` file or passed as parameters to the “Connect” tool. The README advises using a secure password in production.

评论

开发工具 分类下的更多 MCP 服务器