I struggled with configuring custom Python MCP scripts in Cursor. It consistently showed 0 tools, unlike other IDEs like Cherry Studio, which easily detected them. I finally found a stable configuration by directly editing JSON files, as shown below:
"tool_name": {
"command": "D:\\your_venv_path_for_mcp_tools\\.venv\\Scripts\\python.exe",
"args": [
"D:\\your_path_of_mcp_scripts\\***.py"
]