Skip to content
VS Code

mcp neo4j cypher for VS Code

io.github.neo4j-contrib/mcp-neo4j-cypher

A simple Neo4j MCP server that allows you to run Cypher queries against a Neo4j database.

client:VS Code transport:stdio runtime:pypi

Install mcp neo4j cypher in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "neo4j-uri",
      "description": "NEO4J_URI",
      "password": true
    },
    {
      "type": "promptString",
      "id": "neo4j-username",
      "description": "NEO4J_USERNAME",
      "password": true
    },
    {
      "type": "promptString",
      "id": "neo4j-password",
      "description": "NEO4J_PASSWORD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "neo4j-database",
      "description": "NEO4J_DATABASE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "neo4j-namespace",
      "description": "NEO4J_NAMESPACE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "neo4j-response-token-limit",
      "description": "NEO4J_RESPONSE_TOKEN_LIMIT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "neo4j-read-timeout",
      "description": "NEO4J_READ_TIMEOUT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "neo4j-read-only",
      "description": "NEO4J_READ_ONLY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "neo4j-schema-sample-size",
      "description": "NEO4J_SCHEMA_SAMPLE_SIZE",
      "password": true
    }
  ],
  "servers": {
    "mcp-neo4j-cypher": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-neo4j-cypher"
      ],
      "env": {
        "NEO4J_URI": "${input:neo4j-uri}",
        "NEO4J_USERNAME": "${input:neo4j-username}",
        "NEO4J_PASSWORD": "${input:neo4j-password}",
        "NEO4J_DATABASE": "${input:neo4j-database}",
        "NEO4J_NAMESPACE": "${input:neo4j-namespace}",
        "NEO4J_RESPONSE_TOKEN_LIMIT": "${input:neo4j-response-token-limit}",
        "NEO4J_READ_TIMEOUT": "${input:neo4j-read-timeout}",
        "NEO4J_READ_ONLY": "${input:neo4j-read-only}",
        "NEO4J_SCHEMA_SAMPLE_SIZE": "${input:neo4j-schema-sample-size}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

mcp neo4j cypher in other clients