How to close the black terminal windows

Hello, everyone.

I am using cursor mcp server feature. there is my problem.

cursor version: 0.45.8~0.45.10
OS: windows10/windows 11

I user python developed a image gen mcp server with fastmcp.

It can work this below config:
name: image-gen-server
type: command
command:uv run --with fastmcp fastmcp run D:\code\image-moudle\server.py

It will appear a black terminal windows when and it to cursor mcp server or refresh this tools. but it works well. and will not work if i close the terminal .

How to use it without the black terminal windows?

I think the write way to use it steps like this :

  1. start the mcp server ,like: fastmcp dev D:\code\image-moudle\server.py or uv run --with fastmcp fastmcp run D:\code\image-moudle\server.py
  2. and this mcp tools to cursor mcp server.

but the step 2 cant work.

I can see the Arguments like bellow where I use MCP Inspector v0.4.0 :
run --with fastmcp fastmcp run D:/code/image-gen-server/server.py

but it cant works config with this command to cursor.It shows no tools found.

Anyone who can help me ?

the command shows in MCP Inspector:

and it shows in develop tools of cursor:

no body help?

I don’t get what is the problem here? That black terminal is the “uv.exe” which is required for your workflow. If you close it, it will not work.

I am not a windows user but you might try to run your command within Cursor terminal, maybe that way you will not a see a pop-up window.

thx you. I dont want it appear a new black terminal.
If I run the command within Cursor terminal. it does not work. Cursor cant font the tools in MCP Server list .

The black terminal window is actually needed since it’s running the UV process for your MCP server. We may be able to resolve this somehow, but this is more of a Windows thing, than a Cursor thing.

Your current setup with the black terminal window is actually the right way to do it. If you really want to avoid the window, you could look into running it as a Windows service instead, but that’s probably more complex than needed

Check out our docs on MCP setup here: Cursor – Model Context Protocol

Just to follow up, I’ve spoke to the team and we are working on removing / hiding the empty terminal in future updates!

great!