Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

docs: add cursor with mcp

Yuta Saito18839a36005e
diff --git a/docs/my-website/docs/tutorials/cursor_integration.md b/docs/my-website/docs/tutorials/cursor_integration.md
index 3f462e1ee5d..49f88bd0487 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.
+
+<Image img={require('../../img/cursor_mcp_installed.png')} />
+
## 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 00000000000..f2339bcec3d
Binary files /dev/null and b/docs/my-website/img/cursor_mcp_installed.png differ