Skip to main content
Glama

Content Server

run_server.sh1.4 kB
#!/bin/bash # RAG MCP Server Startup Script # Check if uv is installed if ! command -v uv &> /dev/null; then echo "uv is not installed. Please install it first:" echo "curl -LsSf https://astral.sh/uv/install.sh | sh" echo "or" echo "pip install uv" exit 1 fi # Check if virtual environment exists if [ ! -d ".venv" ]; then echo "Virtual environment not found. Creating one with uv..." uv venv echo "Installing dependencies with uv..." uv pip install \ mcp==1.0.0 \ fastapi==0.115.5 \ uvicorn==0.32.1 \ requests==2.32.3 \ python-multipart==0.0.17 \ pydantic==2.10.3 \ python-dotenv==1.0.1 else echo "Activating virtual environment..." source .venv/bin/activate echo "Syncing dependencies with uv..." uv pip install \ mcp==1.0.0 \ fastapi==0.115.5 \ uvicorn==0.32.1 \ requests==2.32.3 \ python-multipart==0.0.17 \ pydantic==2.10.3 \ python-dotenv==1.0.1 fi # Load environment variables if .env file exists if [ -f ".env" ]; then echo "Loading environment variables from .env file..." export $(cat .env | grep -v '^#' | xargs) fi echo "Starting RAG MCP Server..." echo "Server will listen for MCP protocol messages via stdin/stdout" echo "Press Ctrl+C to stop the server" echo "" # Start the MCP server python mcp_server.py

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yogeshkulkarni553/rag-mcp-py'

If you have feedback or need assistance with the MCP directory API, please join our Discord server