import os
# Check if we have the necessary api keys
MISSING_KEY_ERROR_MESSAGES = {
"NEWS_API_KEY": (
"Missing `NEWS_API_KEY` environment variable. "
"This application requires an api key for newsapi.org"
),
"COHERE_API_KEY": (
"Missing `COHERE_API_KEY` environment variable. "
"This application requires a developer api key from Cohere."
),
}
for key, msg in MISSING_KEY_ERROR_MESSAGES.items():
try:
_ = os.environ[key]
except KeyError:
raise ValueError(msg)
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/VectorInstitute/mcp-goodnews'
If you have feedback or need assistance with the MCP directory API, please join our Discord server