Gen-AI Developer Classroom notes 29/Oct/2026

Connecting Custom MCP server to claude desktop over stdio

  • Ensure your mcp code has
if __name__ == "__main__":
    mcp.run("stdio")
  • Give full paths to exe’s and in windows replace \ with \\

  • Sample claude_desktop.json

{
  "mcpServers": {
    "hello-mcp" : {
        "command": "C:\\Users\\DELL\\AppData\\Local\\Microsoft\\WinGet\\Packages\\astral-sh.uv_Microsoft.Winget.Source_8wekyb3d8bbwe\\uv.exe",
        "args": [
            "run",
            "--directory",
            "C:\\khajaclassroom\\GenerativeAI\\agenticai\\oct26\\mcp_servers\\learning_mcp",
            "server.py"
        ]
    }
  }
}

Configure everything mcp server in claude desktop

By continuous learner

enthusiastic technology learner

Leave a comment