Add a Cursor example tool config for MCP server (#38213)

* Add a Cursor example tool config for MCP server

* home assistant -> Home Assistant

* Fix URL

* Fix

* No need for both urls

* Same name

* Add install step
This commit is contained in:
Aidan Timson 2025-03-31 01:55:48 +01:00 committed by GitHub
parent 24c3b4afc4
commit d3426d031f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 27 additions and 0 deletions

View File

@ -117,6 +117,33 @@ to allow Claude for Desktop to access Home Assistant using the SSE transport.
![Screenshot of Claude for Desktop adding an item to a Home Assistant To-do list](/images/integrations/mcp_server/claude-todo-list-control.png)
### Example: Cursor
1. Download and install [Cursor](https://www.cursor.com).
2. Install `mcp-proxy` following the instructions in the [README](https://github.com/sparfenyuk/mcp-proxy).
For example, `uv tool install git+https://github.com/sparfenyuk/mcp-proxy`.
3. Open the main Cursor Settings and select **MCP**.
4. Click **Add new global MCP server** and add the Home Assistant server configuration:
```json
{
"mcpServers": {
"Home Assistant": {
"command": "mcp-proxy",
"args": [
"http://localhost:8123/mcp_server/sse"
],
"env": {
"API_ACCESS_TOKEN": "<your_access_token_here>"
}
}
}
}
```
5. Save your `mcp.json` file. You can also find this file in the `$HOME/.cursor/mcp.json` directory.
6. Restart Cursor and return to the MCP settings. You should see the Home Assistant server in the list. The indicator should be green.
7. In chat agent mode (Ctrl+I), ask it to control your home and the tool should be used.
![Screenshot of Cursor controlling the office lights](/images/integrations/mcp_server/cursor-lights-control.png)
## Supported functionality

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB