A minimal Model Context Protocol (MCP) server implemented in Python, matching the features and structure of the TypeScript starter.
- Hello Tool: Returns a greeting using the
MCP_GREETINGenvironment variable. - Markdown Resource: Serves a static markdown file from
resources/example.md. - Prompt: Simple prompt handler example.
- Environment-based configuration: Reads greeting and secret from environment variables.
- VS Code integration:
.vscode/mcp.jsonfor easy server launch with input prompts. - Devcontainer support: (Optional, add
.devcontainerif needed) - Tests: (Add tests as needed)
-
Install dependencies
pip install . -
Run the server
python server.py stdio
-
Use with MCP client or VS Code
Use the provided
.vscode/mcp.jsonto launch the server with custom inputs.
server.py— Main MCP server implementationresources/example.md— Example markdown resource.vscode/mcp.json— VS Code MCP server config.gitignore— Standard Python ignores
MIT