Skip to main content
Glama

Content Server

run_server_uv.sh1.16 kB
#!/bin/bash # RAG MCP Server Startup Script (uv-native) # 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 # 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 with uv..." echo "Server will listen for MCP protocol messages via stdin/stdout" echo "Press Ctrl+C to stop the server" echo "" # Start the MCP server using pyproject.toml if available, otherwise use inline dependencies if [ -f "pyproject.toml" ]; then echo "Using pyproject.toml for dependencies..." uv run mcp_server.py else echo "Using inline dependencies..." uv run \ --with mcp==1.0.0 \ --with fastapi==0.115.5 \ --with uvicorn==0.32.1 \ --with requests==2.32.3 \ --with python-multipart==0.0.17 \ --with pydantic==2.10.3 \ --with python-dotenv==1.0.1 \ mcp_server.py fi

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