Forums

MCP server running on pythonanywhere

I have installed mcp client on pyhtonanywhere and have a MPC server (.py file). How can I make this MCP server run as webapp here on pythonanywhere? I guess I struggle with the WSGI settings to "link" to the server file and run it. Thanks for any help!

Is the MCP server based on a particular web framework? Or is it using its own HTTP server?

modelcontextprotocol.io shows something like

if __name__ == "__main__":
    # Initialize and run the server
    mcp.run(transport='stdio')

[edit by admin: formatting]

Is the MCP server something you've written yourself? Or is it a third-party thing that you've downloaded? If the latter, where did you get it from?

https://modelcontextprotocol.io/

I wonder how to run an MCP server with the MCP Python SDK on pythonanywhere. I am talking about Model Context Protocol.

I don't think that'll work. You can only run WSGI/ASGI apps on PythonAnywhere and this would try to spin up its own server process.

I have a technical problem importing data from results.html

Ok. Describe the problem and we'll try to help.