fastmcp icon indicating copy to clipboard operation
fastmcp copied to clipboard

Document strategy for hosting standalone server

Open jlowin opened this issue 1 year ago • 2 comments

Currently servers are installed in Claude Desktop as it is the only widely used client, but it should be possible to run the server on a standalone basis with a configurable host/port.

jlowin avatar Dec 02 '24 14:12 jlowin

Would very much like this! @jlowin

I have tried to run fastmcp as a server using the docs from the README

uv run fastmcp run server.py

Running the command above does not give any feedback, just keep hanging, and I tried to go to http://localhost:8000 (as it seems to be the default port: https://github.com/jlowin/fastmcp/blob/main/src/fastmcp/server.py#L75) but nothing there

For my use-case I am looking into deploying and using a MCP from a webapp client (I will have a MCP HTTP server + a "client" server with a nice chat UI taking care of the LLM/MCP interaction, not specifically claude based, which I expect will be the use case for a lot of people building chat-based services)

vemonet avatar Dec 10 '24 17:12 vemonet

If someone still reads this: one thing if you run locally make sure you provide the transport option explicitly with sse or the streamable-http - otherwise you're only going to get the stdio transport (which is why it seems to hang).

How are you guys actually doing local development, like use it from Claude Desktop while building for example? It's annoying with uv and the venv because that doesn't properly work in Claude. So my final last resort was to actually build a local docker image and essentially docker run it from Claude....

rose-m avatar May 10 '25 21:05 rose-m

I run my server in VS Code with transport=sse and then in claude/cursor I just setup it as an SSE MCP server.

This allows me to debug in vscode while using the server in claude/cursor

strawgate avatar Oct 04 '25 02:10 strawgate

Ah and this is closed in current docs.

jlowin avatar Oct 04 '25 23:10 jlowin