#!/bin/bash
# Load API key from .key file
if [ -f ".key" ]; then
API_KEY=$(cat .key | tr -d '\n\r')
else
echo "Error: .key file not found!"
echo "Please create a .key file with your API key."
echo "Example: echo 'your-secret-api-key' > .key"
exit 1
fi
# Run mcpo with the API key
uvx mcpo --port 8000 --api-key "$API_KEY" -- uv run python weather.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/gabriel20vieira/ipma-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server