Back to Home
akraradets icon

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

Run Command
uvicorn src.server.main:app --host 0.0.0.0 --port 8080

Security 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

Stats

Interest Score0
Security Score3
Cost ClassMedium
Avg Tokens500
Stars0
Forks0
Last Update2025-12-27

Tags

MCPBoilerplateServerPythonFastMCPLLM