MCPO - MCP over HTTP Proxy
Exposes Cursor IDE's MCP tools (codebase search, file operations) as an HTTP API for integration with Open WebUI, n8n, and other automation tools.
README
MCPO - MCP over HTTP Proxy für Cursor
Ein MCP (Model Context Protocol) Server, der Cursor-Tools als HTTP-API bereitstellt und mit Open WebUI und n8n integriert werden kann.
Features
- 🚀 MCP Server mit Cursor-Tools (codebase_search, file operations, etc.)
- 🌐 HTTP-API via mcpo (MCP over HTTP Proxy)
- 🐳 Podman/Docker Support für einfaches Deployment
- 🔧 PowerShell Install-Script für Windows
- 📡 Open WebUI Integration ready
- 🔄 n8n kompatibel für Workflow-Automation
Quick Start
Windows (PowerShell)
# Installations-Script ausführen
.\mcpo_install.ps1
Das Script:
- Prüft Voraussetzungen (Podman, Node.js)
- Installiert Dependencies
- Startet Podman-Compose als Daemon
- MCP Server ist unter
http://localhost:8000verfügbar
Manuell
# 1. Dependencies installieren
npm install
# 2. Environment konfigurieren
cp .env.example .env
# .env bearbeiten und API-Keys setzen
# 3. Mit Podman starten
podman-compose up -d
# 4. Status prüfen
podman-compose ps
Konfiguration
Environment Variables
Kopiere .env.example nach .env und passe an:
# MCPO Configuration
MCPO_PORT=8000
MCPO_API_KEY=dein-geheimer-api-key-hier
# Workspace (wird als Volume gemountet)
WORKSPACE_PATH=D:\workspace\pvs
# MCP Server
MCP_SERVER_NAME=cursor-mcp
MCP_SERVER_VERSION=1.0.0
API-Key generieren
# PowerShell: Zufälligen API-Key generieren
-join ((48..57) + (65..90) + (97..122) | Get-Random -Count 32 | ForEach-Object {[char]$_})
Verwendung
API-Endpunkte
Nach dem Start:
- API Base:
http://localhost:8000 - OpenAPI Docs:
http://localhost:8000/docs - Health Check:
http://localhost:8000/health
Open WebUI Integration
- Open WebUI → Admin → Settings → External Tools
- MCP Server hinzufügen:
- Type:
MCP (Streamable HTTP) - URL:
http://localhost:8000(oder Docker-Hostname) - API Key: Wert aus
MCPO_API_KEYin.env
- Type:
- Tools aktivieren und speichern
n8n Integration
HTTP Request Node in n8n:
{
"method": "POST",
"url": "http://localhost:8000/api/tools/codebase_search",
"headers": {
"Authorization": "Bearer DEIN_API_KEY",
"Content-Type": "application/json"
},
"body": {
"query": "Wie funktioniert die Patient-Suche?",
"target_directories": []
}
}
Verfügbare Tools
codebase_search
Semantische Suche im Codebase.
Input:
{
"query": "Wie wird die Patient-Suche implementiert?",
"target_directories": ["src/main/java"]
}
file_read
Liest Dateien aus dem Workspace.
Input:
{
"path": "src/main/java/de/bbajor/pvs/patient/service/PatientService.java"
}
file_list
Listet Verzeichnisinhalte.
Input:
{
"directory": "src/main/java",
"recursive": false
}
Entwicklung
Lokale Entwicklung (ohne Docker)
# 1. Node.js Dependencies
npm install
# 2. MCP Server starten
node cursor-mcp-server.js
# 3. In anderem Terminal: mcpo starten
uvx mcpo --port 8000 --api-key "test-key" -- node cursor-mcp-server.js
Logs ansehen
# Podman-Compose Logs
podman-compose logs -f mcp-cursor-proxy
# Nur MCP Server Logs
podman-compose logs -f mcp-server
Container neu bauen
podman-compose build --no-cache
podman-compose up -d
Troubleshooting
Port bereits belegt
# Prüfen, was Port 8000 nutzt
netstat -ano | findstr :8000
# In .env anderen Port setzen (z.B. 8001)
Podman nicht gefunden
# Prüfen, ob Podman installiert ist
podman --version
# Falls nicht: Podman Desktop installieren
# https://podman-desktop.io/
MCP Server startet nicht
# Logs prüfen
podman-compose logs mcp-server
# Container-Shell öffnen
podman-compose exec mcp-server sh
# Manuell testen
node cursor-mcp-server.js
Projekt-Struktur
mcpo/
├── cursor-mcp-server.js # MCP Server (Node.js)
├── package.json # Node.js Dependencies
├── Dockerfile # MCP Server Container
├── podman-compose.yml # Podman-Compose Config
├── mcpo_install.ps1 # Installations-Script
├── .env.example # Environment Template
├── .gitignore
└── README.md
Lizenz
MIT License - siehe LICENSE Datei (falls vorhanden)
Beitragen
PRs sind willkommen! Bitte:
- Fork erstellen
- Feature-Branch (
cursor/feature/mein-feature) - Commit & Push
- PR gegen
mainerstellen
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。