Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions integrations/mcp-memgraph/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ dependencies = [
"memgraph-toolbox>=0.1.7",
"pytest>=8.3.5",
"fastmcp>=2.13.0.2",
"bs4>=0.0.2",
]

[project.optional-dependencies]
Expand Down
1 change: 1 addition & 0 deletions integrations/mcp-memgraph/src/mcp_memgraph/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class TransportType(str, Enum):

STDIO = "stdio"
STREAMABLE_HTTP = "streamable-http"
SSE = "sse"

@classmethod
def values(cls) -> list[str]:
Expand Down
8 changes: 4 additions & 4 deletions integrations/mcp-memgraph/src/mcp_memgraph/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ def main():

logger.warning("Failed to load server '%s', using default server", server_name)

logger.info("Server on %s with transport: %s", config.host, config.transport)
logger.info("Server on %s:%s with transport: %s", config.host, config.port, config.transport)

# Run server with configuration
# Note: host parameter is only used for HTTP/SSE transports, not stdio
transport = cast(Literal["stdio", "streamable-http"], config.transport)
# Note: host and port parameters are only used for HTTP/SSE transports, not stdio
transport = cast(Literal["stdio", "streamable-http", "sse"], config.transport)

if config.transport == "stdio":
mcp.run(transport=transport)
else:
mcp.run(host=config.host, transport=transport)
mcp.run(host=config.host, port=config.port, transport=transport)


if __name__ == "__main__":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@
"support for autonomous index management"
),
},
"memgraph-docs": {
"module": "mcp_memgraph.servers.docs_server",
"emoji": "🚀",
"description": (
"Memgraph documentation server for searching Memgraph documentation information"
),
},
# Future servers can be added here:
# "hygm": {
# "module": "mcp_memgraph.servers.hygm",
Expand Down
Loading