Python MCP Template
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Python MCP Templatebuild and run the Docker container for local testing"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
A DevOps-friendly template with CI/CD, Docker, and Documentation-as-Code (DaC) for building MCP server
🚀 Core Idea
This template leverages fastmcp and FastAPI to seamlessly integrate MCP functionality while inheriting the original OpenAPI specifications.
🌟 Features
CI/CD Integration: Automate your workflows with GitHub Actions.
Dockerized Environment: Consistent and portable development and production environments.
Documentation-as-Code: Automatically generate and deploy documentation using MkDocs. This process also utilizes the
openapi.jsonfile to ensure API documentation is up-to-date.FastAPI Integration: Build robust APIs with OpenAPI support.
🛠️ Getting Started
Local Development
Install dependencies:
uv syncRun the MCP server:
# stdio
uv run fastmcp run mcp_tools/main.py# HTTP (Due to CORS middleware conflicts, additional setup is required)
uv run uvicorn mcp_tools.main_http:starlette_app --host 127.0.0.1 --port 8000Docker
Build the Docker image:
docker build -t python-mcp-template:latest .Run the container:
docker run -i --rm -p 8000:8000 python-mcp-template:latestRun MCP Server:
{
"mcpServers": {
"python-mcp-template": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-p",
"8000:8000",
"python-mcp-template:latest"
]
}
}
}📚 Documentation
Documentation is built using MkDocs and deployed to GitHub Pages.
To build the documentation locally:
chmod +x scripts/build_docs.sh scripts/build_docs.sh mkdocs build
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/hsiangjenli/mcp-slidev'
If you have feedback or need assistance with the MCP directory API, please join our Discord server