Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR makes changes to the cypher mcp server to add
sse
+stdio
transport types to the neo4j-server.Project Structure
mcp/
└── neo4j-cypher/
├── main.py # Entry point for running the server
└── src/
├── init.py # Package marker
├── app.py # FastAPI application setup
├── server.py # Core server implementation
├── transport.py # Transport layer abstraction
└── transports/
├── init.py # Package marker
├── sse_transport.py # SSE transport implementation
└── stdio_transport.py # stdio transport implementation
How to Run
With SSE Transport (Default)
bash$ python main.py --transport sse --db-url bolt://localhost:7687 --username neo4j --password password
With stdio Transport
bash$ python main.py --transport stdio --db-url bolt://localhost:7687 --username neo4j --password password
Configuration
The server can be configured using command-line arguments or environment variables:
--transport: Transport type (sse or stdio), default is sse
--db-url: Neo4j database URL
--username: Neo4j username
--password: Neo4j password
--database: Neo4j database name, default is neo4j
--port: Port for HTTP server when using SSE transport, default is 8000
Environment variables:
NEO4J_URI or NEO4J_URL: Neo4j database URL
NEO4J_USERNAME or NEO4J_USER: Neo4j username
NEO4J_PASSWORD: Neo4j password
NEO4J_DATABASE: Neo4j database name
MCP_TRANSPORT: Transport type (sse or stdio)