Skip to main content
Glama

FastAPI MCP Server

by purity3
config.py427 B
import os from dotenv import load_dotenv from pathlib import Path # 加载.env文件 load_dotenv() # 服务器配置 HOST = os.getenv("HOST", "0.0.0.0") PORT = int(os.getenv("PORT", "8000")) # API验证配置 API_URL = os.getenv("API_URL") API_KEY_PREFIX = os.getenv("API_KEY_PREFIX") # 数据库配置 DB_PATH = os.getenv("DB_PATH", Path(__file__).parent / "database" / "session.db") DATABASE_URL = f"sqlite:///{DB_PATH}"

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/purity3/fastapi-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server