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

Trust Score

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.1.5.tar.gz (431.4 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.1.5-py3-none-any.whl (485.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_templates-1.1.5.tar.gz
  • Upload date:
  • Size: 431.4 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.1.5.tar.gz
Algorithm Hash digest
SHA256 909a164e9efddcfc5564fa76a69d12a002fe039dd923ef7de853a0f159ab64e9
MD5 0d852a6f9faab2b69fb029bb6fde5a0a
BLAKE2b-256 c263282b3cd98c3ca670c47fbcd1365ffa17fad9283dfb2e1f8968a1d88e45ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_templates-1.1.5.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.1.5-py3-none-any.whl.

File metadata

  • Download URL: mcp_templates-1.1.5-py3-none-any.whl
  • Upload date:
  • Size: 485.4 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.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ad3a1dde5c706d110d83fa43a791d71b16cb88e484f545c173f7ce48554a27b5
MD5 6f959599b7837c9a30e082316989fac1
BLAKE2b-256 68d3a07bfc7e4dc035481dd05eba5d38d9a044321cf28dd8d472afb57a2f74bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_templates-1.1.5-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