diff --git a/docs/my-website/docs/tutorials/cursor_integration.md b/docs/my-website/docs/tutorials/cursor_integration.md index 3f462e1ee5..49f88bd048 100644 --- a/docs/my-website/docs/tutorials/cursor_integration.md +++ b/docs/my-website/docs/tutorials/cursor_integration.md @@ -1,3 +1,5 @@ +import Image from '@theme/IdealImage'; + # Cursor Integration Route Cursor IDE requests through LiteLLM for unified logging, budget controls, and access to any model. @@ -76,6 +78,34 @@ Send a message. All requests now route through LiteLLM. --- +## Connecting MCP Servers + +You can also connect MCP servers to Cursor via LiteLLM Proxy. + +For official instructions on configuring MCP integration with Cursor, please refer to the Cursor documentation here: [https://cursor.com/en-US/docs/context/mcp](https://cursor.com/en-US/docs/context/mcp). + +1. In Cursor Settings, go to the "Tools & MCP" tab and click "New MCP Server". + +2. In your `mcp.json`, add the following configuration: + +``` +{ + "mcpServers": { + "litellm": { + "url": "http://localhost:4000/everything/mcp", + "type": "http", + "headers": { + "Authorization": "Bearer sk-LITELLM_VIRTUAL_KEY" + } + } + } +} +``` + +3. LiteLLM's MCP will now appear under "Installed MCP Servers" in Cursor. + + + ## Troubleshooting | Issue | Solution | diff --git a/docs/my-website/img/cursor_mcp_installed.png b/docs/my-website/img/cursor_mcp_installed.png new file mode 100644 index 0000000000..f2339bcec3 Binary files /dev/null and b/docs/my-website/img/cursor_mcp_installed.png differ