MCP Server Boilerplate
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., "@MCP Server Boilerplateshow current settings"
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.
MCP Server Boilerplate
A minimal, extensible template for building Python-based MCP (Model-Context Protocol) servers. This repository provides a small, well-documented starting point that demonstrates common patterns for transport selection, tool registration, configuration, and VS Code integration.
Overview
This boilerplate implements:
A simple MCP server entrypoint (
mcp_server.py)Pluggable transports (STDIO and SSE) selectable via
mcp_settings.pyA transport configurator that can generate a
.vscode/mcp.jsonentryA clear place to add MCP tools (commands) and helper modules
The goal is to make it easy to prototype and ship MCP servers that integrate with tooling and editors while keeping the code small and approachable.
Related MCP server: Streamable HTTP Python MCP Server Template
Features
Example STDIO and SSE transports with configuration
Automated VS Code server configuration (
mcp_transport_configurator.py)Virtual-environment friendly startup and
PYTHONPATHsupportLightweight structure for adding MCP tools and utilities
File Structure
├── mcp_server.py
├── mcp_settings.py
├── mcp_setup_env.py
├── mcp_transport_configurator.py
├── mcp_utils.py
├── requirements.txt
├── README.md
└── tools/ # place to add reusable helper modulesCustomize the layout as your project grows — add src/, tests/, or split tools into packages.
Setup
Create and activate a virtual environment (recommended):
python -m venv .venv # Windows .venv\Scripts\activate # macOS/Linux source .venv/bin/activateInstall dependencies:
pip install -r requirements.txt(Optional) Run the environment helper to set a project env var used by the configurator:
python mcp_setup_env.py
Configuration
Edit mcp_settings.py to choose transport protocol and other runtime options:
PROTOCOL— set toSTDIO(default) orSSEPORT— used only for SSE modeMCP_NAME— logical name used by the transport configurator
Running the Server
Start the server directly:
python mcp_server.pyOr only update the editor/server configuration without starting:
python mcp_transport_configurator.pyVS Code Integration
The included configurator writes a .vscode/mcp.json entry that can be used by editor
extensions to launch the MCP server in STDIO mode or connect via SSE.
Development Notes
Prefer keeping
requirements.txtor migrate topyproject.toml+ lockfile for modern dependency management.Add unit tests under
tests/and run them with your preferred test runner.Keep tools small and focused; register MCP commands from a single initialization point.
Contributing
Contributions are welcome. Open issues or pull requests for bug fixes, documentation improvements, or new example tools demonstrating MCP patterns.
License
See the LICENSE file for licensing details.
Author
Provided as an MCP server boilerplate.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityDmaintenanceA template MCP server that provides a basic structure and configuration for building Model Context Protocol servers. Includes Docker support, environment configuration, and examples for both STDIO and SSE transport modes.Last updated1
- Flicense-qualityDmaintenanceA starter template for building MCP servers in Python using the streamable HTTP transport protocol. Provides a foundation with the MCP Python SDK and example configuration to quickly develop custom MCP servers.Last updated2
- FlicenseCqualityDmaintenanceA TypeScript template for building MCP servers with placeholder tools and dual transport support (stdio + SSE).Last updated5
- FlicenseCqualityDmaintenanceA TypeScript template for building MCP servers with stdio/SSE transport and easy tool registration.Last updated5
Related MCP Connectors
Primarily to be used as a template repository for developing MCP servers with FastMCP in Python, P…
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/VuThach3001/mcp_boilerplate'
If you have feedback or need assistance with the MCP directory API, please join our Discord server