Open
Description
Describe the bug
When using an MCP Server (stdio) installed in Claude Desktop with the command uv run mcp istall server_test.py
and then closing Claude Desktop, the process mcp.exe remains active in Task Manager on Windows 10.
If you open and close Claude Desktop again, the number of lingering mcp.exe processes increases.
To Reproduce
Steps to reproduce the behavior:
- Install
server_test.py
using the command above. - Open Claude Desktop and ensure the MCP server is correctly set up.
- Close Claude Desktop and check Task Manager for
mcp.exe
orpython.exe
still running. - Repeat steps 2 and 3 to see the processes being duplicated.
Expected behavior
The process should exit cleanly when Claude Desktop is closed.
I tested the MCP server provided by the C# SDK, and it exits correctly — so the issue might be specific to the Python implementation or FastMCP.
Desktop
- OS: Windows 10
- Python 3.13.3
- Claude Desktop version 0.9.2
- mcp[cli]>=1.6.0
- uv 0.6.13
Metadata
Metadata
Assignees
Labels
No labels