Skip to content

Expose mistralrs as an MCP server

mistral.rs can expose itself as an MCP server.

Terminal window
mistralrs serve --mcp-port 3030 -m Qwen/Qwen3-4B

--mcp-port enables the MCP server on a separate port. The endpoint is POST /mcp over HTTP with JSON-RPC 2.0.

The HTTP API on --port continues to run alongside.

Clients connect to http://<host>:<mcp_port>/mcp.

The MCP endpoint has no built-in authentication. For non-localhost use, place an authenticating proxy in front.