RTIdeas MCP API Server
Converts a local MCP server into a remote HTTP-accessible REST API server with MongoDB support for managing brainstorming sessions and ideas. Provides endpoints for listing sessions, searching ideas, analyzing connections, and generating statistics.
README
RTIdeas MCP API Server
Servidor API REST para RTIdeas con soporte MongoDB. Convierte tu MCP local en un servidor remoto accesible v铆a HTTP.
馃殌 Inicio R谩pido
1. Instalar Dependencias
pip install -r requirements.txt
2. Configurar Variables de Entorno
cp env.example .env
# Editar .env con tu MONGODB_URI
3. Iniciar Servidor
# Desarrollo (con auto-reload)
python dev_server.py
# Producci贸n
python server.py
馃搧 Archivos Principales
server.py- Archivo principal del servidor (para producci贸n)dev_server.py- Servidor de desarrollo (con auto-reload)rtideas_api_server.py- L贸gica principal del servidor APIconfig.py- Configuraci贸n del servidormongodb_connector.py- Conector a MongoDBrequirements.txt- Dependencias Pythonenv.example- Variables de entorno de ejemplo
馃寪 URLs del Servidor
- API: http://localhost:8000
- Documentaci贸n: http://localhost:8000/docs
- Health Check: http://localhost:8000/health
馃摗 Endpoints Disponibles
Herramientas MCP (POST)
POST /tools/list_sessions
POST /tools/get_session
POST /tools/list_ideas
POST /tools/search_ideas
POST /tools/get_idea_connections
POST /tools/get_idea_clusters
POST /tools/get_session_stats
POST /tools/analyze_session
POST /tools/hello_rtideas
Recursos MCP (GET)
GET /resources/sessions
GET /resources/ideas/{session_id}
GET /resources/connections/{session_id}
GET /resources/clusters/{session_id}
GET /resources/stats/{session_id}
馃殌 Despliegue en Servidor
Opci贸n 1: Docker (Recomendado)
# Crear docker-compose.yml
docker-compose up -d
Opci贸n 2: VPS/Cloud
# Instalar dependencias
pip install -r requirements.txt
# Configurar variables de entorno
cp env.example .env
nano .env
# Iniciar servidor
python server.py
Opci贸n 3: Con Gunicorn (Producci贸n)
gunicorn rtideas_api_server:app -w 4 -k uvicorn.workers.UvicornWorker --bind 0.0.0.0:8000
馃敡 Variables de Entorno
| Variable | Descripci贸n | Valor por Defecto |
|---|---|---|
MONGODB_URI |
URI de conexi贸n MongoDB | Requerido |
MONGODB_DATABASE |
Nombre de la base de datos | rtideas |
API_HOST |
Host del servidor | 0.0.0.0 |
API_PORT |
Puerto del servidor | 8000 |
API_RELOAD |
Auto-reload en desarrollo | false |
CORS_ORIGINS |
Or铆genes permitidos | * |
馃搳 Ejemplo de Uso
# Health check
curl http://localhost:8000/health
# Listar herramientas
curl http://localhost:8000/tools
# Usar herramienta
curl -X POST "http://localhost:8000/tools/hello_rtideas" \
-H "Content-Type: application/json" \
-d '{"name": "Usuario"}'
馃敀 Seguridad
- Configurar
CORS_ORIGINSen producci贸n - Usar HTTPS en producci贸n
- Agregar autenticaci贸n si es necesario
馃摑 Logs y Monitoreo
# Ver logs del servidor
tail -f server.log
# Health check
curl http://localhost:8000/health
馃啒 Troubleshooting
- Puerto en uso: Cambiar
API_PORTen.env - MongoDB no conecta: Verificar
MONGODB_URI - CORS errors: Configurar
CORS_ORIGINS
Para m谩s detalles, ver DEPLOYMENT.md.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
E2B
Using MCP to run code via e2b.