🐞 Bug Summary
cannot import name 'McpError' from 'mcp'
got that error when tried to run mcpgateway.exe --host 0.0.0.0 --port 4444
In Windows, I was trying to follow Quick Start instructions with uv commands
On google search found this
"This import failure occurs because the mcp Python SDK updated to version 2.0.0, which renamed the McpError exception class to MCPError "
It really resolved after I pinned that mcp server to "mcp>=1.1.3,<2.0.0"
🧩 Affected Component
Select the area of the project impacted:
🔁 Steps to Reproduce
- ...Follow Windows Quick start with
uv
- ...
- ...
🤔 Expected Behavior
What should have happened instead?
After installation mcpgateway.exe --host 0.0.0.0 --port 4444 should start the mcp gateway
📓 Logs / Error Output
Paste any relevant stack traces or logs here.
⚠️ Do not paste secrets, credentials, or tokens.
cannot import name 'McpError' from 'mcp'
🧠 Environment Info
You can retrieve most of this from the /version endpoint.
| Key |
Value |
| Version or commit |
e.g. v0.9.0 or main@a1b2c3d |
| Runtime |
e.g. Python 3.11, Gunicorn |
| Platform / OS |
e.g. Ubuntu 22.04, macOS |
| Container |
e.g. Docker, Podman, none |
🧩 Additional Context (optional)
Add any configuration details, flags, or related issues.
🐞 Bug Summary
cannot import name 'McpError' from 'mcp'
got that error when tried to run
mcpgateway.exe --host 0.0.0.0 --port 4444In Windows, I was trying to follow Quick Start instructions with
uvcommandsOn google search found this
"This import failure occurs because the mcp Python SDK updated to version 2.0.0, which renamed the McpError exception class to MCPError "
It really resolved after I pinned that mcp server to "mcp>=1.1.3,<2.0.0"
🧩 Affected Component
Select the area of the project impacted:
mcpgateway- APImcpgateway- UI (admin panel)mcpgateway.wrapper- stdio wrapper🔁 Steps to Reproduce
uv🤔 Expected Behavior
What should have happened instead?
After installation
mcpgateway.exe --host 0.0.0.0 --port 4444should start the mcp gateway📓 Logs / Error Output
Paste any relevant stack traces or logs here.
⚠️ Do not paste secrets, credentials, or tokens.
cannot import name 'McpError' from 'mcp'
🧠 Environment Info
You can retrieve most of this from the
/versionendpoint.e.g. v0.9.0 or main@a1b2c3de.g. Python 3.11, Gunicorne.g. Ubuntu 22.04, macOSe.g. Docker, Podman, none🧩 Additional Context (optional)
Add any configuration details, flags, or related issues.