We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/brockwebb/open-census-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
build.shβ’1.67 KiB
#!/bin/bash
# Census MCP Container Build Script
set -e
echo "ποΈ Building Census MCP Server Container"
echo "========================================"
# Check if vector DB exists and has content
if [ ! -d "data/vector_db" ] || [ ! "$(ls -A data/vector_db)" ]; then
echo "β Vector database not found at data/vector_db/"
echo ""
echo "Build the vector database first:"
echo " cd knowledge-base/"
echo " python build-kb.py --output-dir ../data/vector_db"
echo ""
exit 1
fi
# Show vector DB stats
echo "β Vector database found:"
DB_SIZE=$(du -sh data/vector_db | cut -f1)
DB_FILES=$(find data/vector_db -type f | wc -l)
echo " Size: $DB_SIZE"
echo " Files: $DB_FILES"
# Check that vector DB looks valid
if [ ! -f "data/vector_db/chroma.sqlite3" ]; then
echo "β οΈ Warning: Vector DB might be incomplete (no chroma.sqlite3 found)"
fi
echo ""
echo "π³ Building Docker container (this will include the 85MB vector DB)..."
# Build container with vector DB baked in
docker build -t census-mcp:latest .
# Get final image size
IMAGE_SIZE=$(docker images census-mcp:latest --format "{{.Size}}")
echo ""
echo "β Build complete!"
echo " Container size: $IMAGE_SIZE"
echo ""
echo "π Usage:"
echo " # Basic run (vector DB already included)"
echo " docker run census-mcp:latest"
echo ""
echo " # With Census API key for better rate limits"
echo " docker run -e CENSUS_API_KEY=your_key census-mcp:latest"
echo ""
echo " # With docker-compose"
echo " docker-compose up"
echo ""
echo "π¦ The container includes:"
echo " β Pre-built vector database (85MB)"
echo " β All R packages and dependencies"
echo " β Sentence transformer model cache"