Skip to content

Commit 5e0459f

Browse files
author
shiraayal-tadata
committed
README update to include Claude Desktop usage
1 parent feabc8a commit 5e0459f

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

README.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,36 @@ async def get_server_time() -> str:
7979

8080
See the [examples](examples) directory for complete examples.
8181

82-
## Connecting to the MCP Server
82+
## Connecting to the MCP Server using SSE
8383

84-
Once your FastAPI app with MCP integration is running, you can connect to it with any MCP client, such as Cursor:
84+
Once your FastAPI app with MCP integration is running, you can connect to it with any MCP client supporting SSE, such as Cursor:
8585

8686
1. Run your application
8787
2. In Cursor -> Settings -> MCP, use the URL of your MCP server endpoint (e.g., `http://localhost:8000/mcp`) as sse.
8888
3. Cursor will discover all available tools and resources automatically
8989

90+
## Connecting to the MCP Server using [mcp-proxy stdio](https://github.com/sparfenyuk/mcp-proxy?tab=readme-ov-file#1-stdio-to-sse)
91+
92+
If your MCP client does not support SSE, for example Claude Desktop:
93+
94+
1. Run your application
95+
2. Install [mcp-proxy](https://github.com/sparfenyuk/mcp-proxy?tab=readme-ov-file#installing-via-pypi), for example:
96+
```bash
97+
uv tool install mcp-proxy
98+
```
99+
3. In Claude Desktop MCP config file:
100+
```json
101+
{
102+
"mcpServers": {
103+
"my-api-mcp-proxy": {
104+
"command": "mcp-proxy",
105+
"args": ["http://127.0.0.1:8000/mcp"]
106+
}
107+
}
108+
}
109+
```
110+
4. Claude Desktop will discover all available tools and resources automatically
111+
90112
## Development and Contributing
91113

92114
If you're interested in contributing to FastAPI-MCP:

0 commit comments

Comments
 (0)