Star AI MCP RAG

Semantic search and document retrieval API with OpenAI embeddings

Server Running
⏱️ Uptime: 102h 12m 59s
📊 Version: 1.0.0
🔗 Qdrant: Connected

📡 API Endpoints

GET /

This documentation page (HTML or JSON based on Accept header)

GET /health

Health check endpoint with system metrics and service status

{ "status": "healthy", "uptime": 367979, "services": { "api": "up", "qdrant": "up" }, "version": "1.0.0" }
GET /metrics

Prometheus-compatible metrics for monitoring

POST /api/search 🔐 REQUIRES AUTH

Semantic search across embedded documents

// Request curl -X POST https://star-ai-mcp-rag.testapp.ca/api/search \ -H "Content-Type: application/json" \ -H "Authorization: Token YOUR_API_KEY" \ -d '{ "query": "search query here", "limit": 5 }' // Response { "results": [ { "id": "doc-uuid", "score": 0.95, "payload": { "text": "matched content...", "source": "document.txt" } } ], "count": 5 }
GET /api/search/stats 🔐 REQUIRES AUTH

Get collection statistics and document count

POST /mcp/tools/search 🔐 REQUIRES AUTH

MCP-compatible search endpoint for tool integrations

🔐 Authentication

All protected endpoints require an API key. Include it in your request headers:

// Method 1: Token format (recommended) Authorization: Token YOUR_API_KEY // Method 2: Bearer format Authorization: Bearer YOUR_API_KEY // Method 3: Custom header X-API-Key: YOUR_API_KEY

Public endpoints (no authentication required): /health, /metrics, /

🛠️ MCP Tools

rag_search
Semantic search using vector embeddings from OpenAI
query (required) - Search query text
limit - Maximum results to return (default: 5)
threshold - Minimum similarity score (0-1, default: 0.7)

💡 Examples

Semantic Search

curl -X POST https://star-ai-mcp-rag.testapp.ca/api/search \ -H "Content-Type: application/json" \ -H "Authorization: Token YOUR_API_KEY" \ -d '{ "query": "How do I deploy to production?", "limit": 3, "threshold": 0.75 }'

MCP Tool Call

{ "jsonrpc": "2.0", "method": "tools/call", "params": { "name": "rag_search", "arguments": { "query": "deployment guide", "limit": 5 } }, "id": 1 }

📚 Features

🔗 Resources