import os
from dotenv import load_dotenv
from src import main
if __name__ == "__main__":
load_dotenv()
if not os.getenv("XAI_API_KEY"):
print(" Warning: XAI_API_KEY not found in environment.")
print("Please set your API key in .env file or export it: export XAI_API_KEY='your_api_key' ")
print("Starting server will fail on first API call")
else:
print("✓ XAI_API_KEY found")
print("✓ Started MCP-Grok server")
main()
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/merterbak/Grok-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server