Previously I had implemented an MCP server in Rust. But I started feeling like the Rust version was too complex—was it really necessary, and could I switch to Python and have the same experience? It seems Rust is only necessary for performance-sensitive programs, and my MCP server is not one of them.
I had Hy4 Flash implement (and debug) a Python MCP server. It implemented the complete Python version, which is based on calling my Rust program from the command-line with subprocess. This allowed me to eliminate a lot of Rust code that was hard to maintain.
For Python, it is necessary to use a virtual environment (venv) to install the mcp module. Then you can run the MCP server Python script from the python executable within the virtual environment directory. This works seamlessly and in modern times, with Python 3.14 and its many optimizations, the overhead is not really a problem.