mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 23:36:51 +00:00
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:
parent
24c3b4afc4
commit
d3426d031f
@ -117,6 +117,33 @@ to allow Claude for Desktop to access Home Assistant using the SSE transport.
|
||||
|
||||

|
||||
|
||||
### 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.
|
||||
|
||||

|
||||
|
||||
## Supported functionality
|
||||
|
||||
|
BIN
source/images/integrations/mcp_server/cursor-lights-control.png
Normal file
BIN
source/images/integrations/mcp_server/cursor-lights-control.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 78 KiB |
Loading…
x
Reference in New Issue
Block a user