Cookiecutter MCP UV Container logo

Cookiecutter MCP UV Container

Community
daviddrummond95

A Cookiecutter template for creating MCP servers with Apple container support and configurable transport methods.

Publisherdaviddrummond95
Repositorycookiecutter-mcp-uv-container
LanguagePython
Forks
5
Stars
26
Available tools
0
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    Cookiecutter MCP UV Container exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    26 stars and 5 forks from the linked repository.

Cookiecutter MCP UV Container

A cookiecutter template for quickly creating MCP (Model Context Protocol) servers with Apple container support.

Why Apple Containers?

Apple containers provide VM-level isolation with Docker-like simplicity:

  • Superior Security: Each container runs in its own lightweight VM
  • macOS Native: Deep integration with macOS frameworks
  • On-Demand: Start/stop servers as needed (not constantly running)
  • Resource Efficient: Less overhead than traditional VMs
  • OCI Compatible: Works with existing container registries

Features

  • 🚀 FastMCP server setup with example tools
  • 🐳 Multi-stage Dockerfile for optimized containers
  • 📦 UV package management
  • 🔒 VM-level isolation with non-root container user
  • 🌐 Multiple transport methods (stdio, streamable-http, sse)
  • 🍎 Optimized for Apple Silicon
  • 📝 Example calculator tools with typed parameters

Usage

Prerequisites

  1. Install UV (if not already installed):

    bash
    curl -LsSf https://astral.sh/uv/install.sh | sh
  2. Install cookiecutter:

    bash
    uv tool install cookiecutter
    # or
    pip install cookiecutter
  3. Install Apple/Container:

    Visit https://github.com/apple/container

Create a new project

bash
# From local directory
cookiecutter /path/to/cookiecutter-mcp-uv-container

# From GitHub 
cookiecutter https://github.com/daviddrummond95/cookiecutter-mcp-uv-container

Template Variables

You'll be prompted for:

  • project_name: Human-readable project name (e.g., "My Calculator MCP")
  • project_slug: Package name (auto-generated from project_name)
  • mcp_name: The MCP server name (e.g., "MyCalculatorMCP")
  • description: Project description
  • author_name: Your name
  • author_email: Your email
  • python_version: Python version (default: 3.13)
  • mcp_version: MCP SDK version (default: 1.9.4)

Project Structure

After generation, your project will have:

my-mcp-server/
├── Dockerfile          # Multi-stage build for containers
├── pyproject.toml      # UV project configuration
├── hello.py            # MCP server implementation
├── QUICKSTART.md       # Quick start guide
└── .env.example        # Environment configuration

Next Steps

After creating your project:

  1. Navigate to your project:

    bash
    cd my-mcp-server # or whatever you put as project-slug
  2. Start Container System (first time only):

    bash
    container system start
  3. Build Container:

    bash
    container build --tag my-mcp . # Replace my-mcp with whatever you want to name the container
  4. Run MCP Server:

    bash
    # Interactive stdio mode
    container run --interactive my-mcp
  5. Customize: Edit hello.py to add your own MCP tools

Claude Desktop Integration

For Claude Desktop, you have two options:

Option 1: Run locally without container (recommended for development)

json
{
  "mcpServers": {
    "My MCP Server (Local)": {
      "command": "uv",
      "args": ["run", "fastmcp", "/path/to/my-mcp-server/hello.py"]
    }
  }
}

Option 2: Use HTTP transport with container

Then configure Claude Desktop to connect via STDIO:

json
{
  "mcpServers": {
    "My MCP Server (Container)": {
      "command": "container",
   	 "args": ["run",  "--interactive", "my-mcp-container"]
    }
  }
}

Transport Options

The template supports multiple transport methods via environment variables:

  • stdio: Default
  • More in progress for flow from local-> cloud

Set via: MCP_TRANSPORT=<transport-type>

License

MIT

Use Cookiecutter MCP UV Container MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Cookiecutter MCP UV Container is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Cookiecutter MCP UV Container as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Cookiecutter MCP UV Container MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "cookiecutter-mcp-uv-container": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Cookiecutter MCP UV Container MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Cookiecutter MCP UV Container MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Cookiecutter MCP UV Container to help me with this task?
Cookiecutter MCP UV Container
Sure. I read it.
Here is what I found using Cookiecutter MCP UV Container.

Frequently asked questions

What is the Cookiecutter MCP UV Container MCP server used for?

Cookiecutter MCP UV Container is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Cookiecutter MCP UV Container MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Cookiecutter MCP UV Container with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Cookiecutter MCP UV Container MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Cookiecutter MCP UV Container connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Cookiecutter MCP UV Container MCP to TypingMind?

Cookiecutter MCP UV Container runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Cookiecutter MCP UV Container MCP provide in TypingMind?

Cookiecutter MCP UV Container exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Cookiecutter MCP UV Container MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Cookiecutter MCP UV Container requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇