Skip to content

Neo4j Cypher SSE #45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AndroDevcd
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant