You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
graphify-mcp fails on fresh installation with ImportError: cannot import name 'AnyUrl' from mcp.types #2279
I was able to reproduce the issue on a fresh installation. The root cause appears to be an incompatibility between the current graphify-mcp release and newer versions of the mcp SDK. Specifically, graphify-mcp imports AnyUrl from mcp.types, but that symbol is no longer available in the latest mcp versions, resulting in:
ImportError: cannot import name 'AnyUrl' from 'mcp.types'
As a temporary workaround, the following steps resolve the issue:
# Remove any existing installation
uv tool uninstall graphify
# Install graphify with MCP support
pip3 install --break-system-packages "graphify[mcp]"
# Pin the MCP SDK to a compatible version
pip3 install --break-system-packages --upgrade "mcp==1.29.0"
After downgrading to mcp==1.29.0, graphify-mcp starts and works as expected.
It would be helpful to either:
update graphify-mcp to support the latest mcp SDK, or
pin the compatible mcp version in the package dependencies until compatibility is restored.
Thanks! My installation uses uv tool install "graphifyy[mcp,gemini,sql]" rather than a global pip install. Is there a recommended way to pin mcp==1.29.0 inside the uv tool environment, or is reinstalling via pip currently the only supported workaround?
Activity
smartweb-dev commentedon Jul 29, 2026
I can confirm this issue on another Windows machine.
Environment
Installed using:
python -m uv tool install "graphifyy[mcp,gemini,sql]"Result
Everything except MCP works correctly:
The MCP server fails immediately with:
Cursor MCP also fails with the same traceback.
My installation contains:
Looks like another confirmation that Graphify 0.9.29 is incompatible with MCP 2.0.0.
Diwas2055 commentedon Jul 29, 2026
I was able to reproduce the issue on a fresh installation. The root cause appears to be an incompatibility between the current graphify-mcp release and newer versions of the mcp SDK. Specifically,
graphify-mcpimportsAnyUrlfrommcp.types,but that symbol is no longer available in the latest mcp versions, resulting in:ImportError: cannot import name 'AnyUrl' from 'mcp.types'As a temporary workaround, the following steps resolve the issue:
After downgrading to
mcp==1.29.0,graphify-mcpstarts and works as expected.It would be helpful to either:
update
graphify-mcpto support the latestmcpSDK, orpin the compatible
mcpversion in the package dependencies until compatibility is restored.smartweb-dev commentedon Jul 29, 2026
Thanks! My installation uses uv tool install "graphifyy[mcp,gemini,sql]" rather than a global pip install. Is there a recommended way to pin mcp==1.29.0 inside the uv tool environment, or is reinstalling via pip currently the only supported workaround?
fix(deps): cap mcp<2 so fresh installs of the MCP server work (#2277, #…
safishamsi commentedon Jul 29, 2026
Fixed in v0.9.30 (same root as #2277): mcp is capped below 2.0, resolving to 1.29.0, so graphify-mcp starts on a fresh install again. https://github.com/Graphify-Labs/graphify/releases/tag/v0.9.30
Merge v8 (0.9.30) into mcp2-support
fix(deps): cap mcp<2 so fresh installs of the MCP server work (Graphi…