boilerplate-mcp
by akraradets
Overview
This repository serves as a boilerplate/template for developing a Model Context Protocol (MCP) server, integrating tools, resources, and prompts for LLM applications.
Installation
uvicorn src.server.main:app --host 0.0.0.0 --port 8080Security Notes
The server exposes a resource template `files://{story_name}` which directly uses the `story_name` from client requests to construct file paths. Without explicit sanitization or validation, this is vulnerable to path traversal (e.g., `files://../../../../etc/passwd`), potentially allowing unauthorized reading of arbitrary files on the server. The `allow_origins=["*"]` in CORS settings is also overly permissive for production.
Similar Servers
mcp-python-starter
A feature-complete Model Context Protocol (MCP) server template in Python for developing AI applications and agents.
mcp-server-python-template
This server acts as a template for building Model Context Protocol (MCP) servers in Python, specifically demonstrating how to expose weather-related tools (get_alerts, get_forecast) by integrating with an external API (National Weather Service) to provide context and actions for AI models.
mcp-go-starter
A feature-complete Model Context Protocol (MCP) server template in Go demonstrating tools, resources, and prompts for AI agent interaction.
agents-mcp-usage
This repository demonstrates the integration of a Model Context Protocol (MCP) server with various AI agent frameworks, showcasing agent communication and operation within a shared context.