AgentStack
MCP verified MIT Self-run

Python Mcp Template

mcp-hsiangjenli-python-mcp-template Β· by hsiangjenli

πŸš€ A DevOps-friendly template with CI/CD, Docker, and Documentation-as-Code (DaC) for building MCP server .

β€” No reviews yet
0 installs
13 views
0.0% view→install

Install

$ agentstack add mcp-hsiangjenli-python-mcp-template

βœ“ scanned Β· βœ“ verified β€” works with Claude Code, Cursor, and more.

Security review

βœ“ Passed

No issues found. Passed automated security review. Β· v0.1.0 How review works β†’

  • βœ“ Prompt-injection patterns
  • βœ“ Secret / credential exfiltration
  • βœ“ Dangerous shell & filesystem operations
  • βœ“ Untrusted network calls
  • βœ“ Known-malicious package signatures

What it can access

  • βœ“ Network access No
  • βœ“ Filesystem access No
  • βœ“ Shell / process execution No
  • βœ“ Environment & secrets No
  • βœ“ Dynamic code execution No

From automated source analysis of v0.1.0. β€œUsed” means the capability is present in the source β€” more access means more to trust, not that it’s unsafe.

Are you the author of Python Mcp Template? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Python MCP Template

> 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.json file to ensure API documentation is up-to-date.
  • FastAPI Integration: Build robust APIs with OpenAPI support.

πŸ› οΈ Getting Started

Local Development

  1. Install dependencies:

``bash uv sync ``

  1. Run the MCP server:

``bash # stdio uv run fastmcp run mcp_tools/main.py ``

``bash # 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 8000 ``

> > - https://gofastmcp.com/deployment/http > - https://github.com/jlowin/fastmcp/issues/840

Docker

  1. Build the Docker image:

``bash docker build -t python-mcp-template:latest . ``

  1. Run the container:

``bash docker run -i --rm -p 8000:8000 python-mcp-template:latest ``

  1. Run MCP Server:

``json { "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:

``bash chmod +x scripts/build_docs.sh scripts/build_docs.sh mkdocs build ``

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source β€” we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet β€” be the first.

Versions

  • v0.1.0 Imported from the upstream source.