Skip to main content

MCP-Server-Templates: Easy, zero-config deployment for Model Context Protocol servers

Project description

MCP Server Templates

Version Python Versions License Discord

Deploy Model Context Protocol (MCP) servers in seconds, not hours.

Zero-configuration deployment of production-ready MCP servers with Docker containers, comprehensive CLI tools, and intelligent caching. Focus on AI integration, not infrastructure setup.


๐Ÿš€ Quick Start

# Install MCP Templates
pip install mcp-templates

# List available templates
mcpt list

# Deploy instantly
mcpt deploy demo

# View deployment
mcpt logs demo

That's it! Your MCP server is running at http://localhost:8080


โšก Why MCP Templates?

Traditional MCP Setup With MCP Templates
โŒ Complex configuration โœ… One-command deployment
โŒ Docker expertise required โœ… Zero configuration needed
โŒ Manual tool discovery โœ… Automatic detection
โŒ Environment setup headaches โœ… Pre-built containers

Perfect for: AI developers, data scientists, DevOps teams building with MCP.


๐ŸŒŸ Key Features

๐Ÿ–ฑ๏ธ One-Click Deployment

Deploy MCP servers instantly with pre-built templatesโ€”no Docker knowledge required.

๐Ÿ” Smart Tool Discovery

Automatically finds and showcases every tool your server offers.

๐Ÿง  Intelligent Caching

6-hour template caching with automatic invalidation for lightning-fast operations.

๐Ÿ’ป Powerful CLI

Comprehensive command-line interface for deployment, management, and tool execution.

๐Ÿ› ๏ธ Flexible Configuration

Configure via JSON, YAML, environment variables, CLI options, or override parameters.

๐Ÿ“ฆ Growing Template Library

Ready-to-use templates for common use cases: filesystem, databases, APIs, and more.


๐Ÿ“š Installation

PyPI (Recommended)

pip install mcp-templates

Docker

docker run --privileged -it dataeverything/mcp-server-templates:latest deploy demo

From Source

git clone https://github.com/DataEverything/mcp-server-templates.git
cd mcp-server-templates
pip install -r requirements.txt

๐ŸŽฏ Common Use Cases

Deploy with Custom Configuration

# Basic deployment
mcpt deploy filesystem --config allowed_dirs="/path/to/data"

# Advanced overrides
mcpt deploy demo --override metadata__version=2.0 --transport http

Manage Deployments

# List all deployments
mcpt list --deployed

# Stop a deployment
mcpt stop demo

# View logs
mcpt logs demo --follow

Template Development

# Create new template
mcpt create my-template

# Test locally
mcpt deploy my-template --backend mock

๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  CLI Tool   โ”‚โ”€โ”€โ”€โ–ถโ”‚ DeploymentManager โ”‚โ”€โ”€โ”€โ–ถโ”‚ Backend (Docker)    โ”‚
โ”‚  (mcpt)     โ”‚    โ”‚                   โ”‚    โ”‚                     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
       โ”‚                      โ”‚                        โ”‚
       โ–ผ                      โ–ผ                        โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Template    โ”‚    โ”‚ CacheManager      โ”‚    โ”‚ Container Instance  โ”‚
โ”‚ Discovery   โ”‚    โ”‚ (6hr TTL)         โ”‚    โ”‚                     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Configuration Flow: Template Defaults โ†’ Config File โ†’ CLI Options โ†’ Environment Variables


๐Ÿ“ฆ Available Templates

Template Description Transport Use Case
demo Hello world MCP server HTTP, stdio Testing & learning
filesystem Secure file operations stdio File management
gitlab GitLab API integration stdio CI/CD workflows
github GitHub API integration stdio Development workflows
zendesk Customer support tools HTTP, stdio Support automation

View all templates โ†’


๐Ÿ› ๏ธ Configuration Examples

Basic Configuration

mcpt deploy filesystem --config allowed_dirs="/home/user/data"

Advanced Configuration

mcpt deploy gitlab \
  --config gitlab_token="$GITLAB_TOKEN" \
  --config read_only_mode=true \
  --override metadata__version=1.2.0 \
  --transport stdio

Configuration File

{
  "allowed_dirs": "/home/user/projects",
  "log_level": "DEBUG",
  "security": {
    "read_only": false,
    "max_file_size": "100MB"
  }
}
mcpt deploy filesystem --config-file myconfig.json

๐Ÿ”ง Template Development

Creating Templates

  1. Use the generator:

    mcpt create my-template
    
  2. Define template.json:

    {
      "name": "My Template",
      "description": "Custom MCP server",
      "docker_image": "my-org/my-mcp-server",
      "transport": {
        "default": "stdio",
        "supported": ["stdio", "http"]
      },
      "config_schema": {
        "type": "object",
        "properties": {
          "api_key": {
            "type": "string",
            "env_mapping": "API_KEY",
            "sensitive": true
          }
        }
      }
    }
    
  3. Test and deploy:

    mcpt deploy my-template --backend mock
    

Full template development guide โ†’


๐Ÿ“– Documentation


๐Ÿค Community


๐Ÿ“ License

This project is licensed under the Elastic License 2.0.


๐Ÿ™ Acknowledgments

Built with โค๏ธ for the MCP community. Thanks to all contributors and template creators!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_templates-1.0.12.tar.gz (397.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_templates-1.0.12-py3-none-any.whl (446.8 kB view details)

Uploaded Python 3

File details

Details for the file mcp_templates-1.0.12.tar.gz.

File metadata

  • Download URL: mcp_templates-1.0.12.tar.gz
  • Upload date:
  • Size: 397.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mcp_templates-1.0.12.tar.gz
Algorithm Hash digest
SHA256 e07819f5ee5991d9b452f3f9a4a9288c7c8cb89ecd545a68ed44055319555fc5
MD5 a0549a069ebddb89df43a8956ad73ac1
BLAKE2b-256 abc5992ecd47e655fd74d859b8a2618f9571ee227da12a6f4d25323206c24dd2

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_templates-1.0.12.tar.gz:

Publisher: unified-ci.yml on Data-Everything/mcp-server-templates

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_templates-1.0.12-py3-none-any.whl.

File metadata

  • Download URL: mcp_templates-1.0.12-py3-none-any.whl
  • Upload date:
  • Size: 446.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mcp_templates-1.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 d78ed1c1a254d2159452a2fc0f840323cff245b004df0e08c87c81c5bec5bc1b
MD5 867f118f86de45f9904d0795b4f36232
BLAKE2b-256 d81c2059fa0d62ba42f90a19add7b12c5703cd70c93bba57b41ede8d219b81f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_templates-1.0.12-py3-none-any.whl:

Publisher: unified-ci.yml on Data-Everything/mcp-server-templates

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page