MCP server is configured and working correctly (tested manually via CLI).
But Agent always returns “Internal Error” when trying to call MCP tools.
All modes fail: Agent, Debug, Plan, Opus 4.8, Sonnet 4.6.
OS: Windows 11
Steps to Reproduce
Configure MCP server in ~/.cursor/mcp.json
Verify MCP shows “2 tools enabled” (green)
Open Agent and type: 統合辞書DBで「東京」を検索して
Agent returns Internal Error immediately
Expected Behavior
Agent should call MCP tool and return search results from the database
Hey, thanks for the detailed report. “Internal Error” in this kind of setup (tools show as green, the handshake succeeds, but the call fails right away) usually means the MCP server itself is returning an error when the tool is invoked, and the agent is just passing it through. Let’s narrow down the cause.
First, a few things:
Update Cursor. You’re on 3.6.31, which is a few releases behind, and there have been a lot of MCP fixes since then. The issue might already be fixed.
The fact that MCP “works via CLI” but not in the IDE is important. The IDE agent starts the stdio server with a different working directory and a different set of env vars than your manual CLI run. Make sure the DB path and any required env vars are set directly in ~/.cursor/mcp.json, not pulled from your shell environment.
Your prompt includes Japanese text and full-width characters (「東京」). It’s worth checking whether the server handles non-ASCII arguments correctly. That’s a common place where a handler crashes even when the tools list looks fine.
To dig deeper, please share:
The MCP server logs: Output panel → select your MCP server channel. It usually shows the real error (stderr).
A fresh Request ID with Privacy Mode turned off (repeat a simple tool call).
That should be enough to see exactly where it’s failing. Let me know how it goes after the update.
Update first. 3.6.31 is a few releases behind, and we shipped a bunch of MCP fixes since then. The fact that the server connects (connected: true), but any tool call instantly fails with “Internal Error” before anything shows up in the server logs, looks like a client-side issue that may already be fixed. So please update Cursor and rerun the test before doing any more debugging.
About server-side logs for a Request ID, unfortunately users don’t have access to those, and we don’t provide per-Request ID logs. The best way forward is to remove variables, update and test in a clean environment.
If “Internal Error” still happens after updating, please send:
A fresh Request ID with Privacy Mode turned off, captured on the new version.
The exact error text from the agent UI (including any expanded details), not only the MCP Output panel.
Also please double-check that the IDE agent starts the stdio server with the same cwd and env as your CLI run. They can differ, and that’s a common reason why it works via CLI but not in the IDE. Put all required paths and env vars directly in ~/.cursor/mcp.json instead of relying on your shell environment.