Skip to main content
Glama
praveen-radakirouchenane

local-mcp-with-docker

Dockerを使用したローカル(stdio) MCPサーバー

このプロジェクトは、stdio上でrun_commandツールを公開する最小限のローカルMCPサーバーです。

セットアップ

cd ~path-to-directory/local-mcp-with-docker
uv sync

以下のコマンドでスクリプトを起動します:

uv run main.py

注意: MCP 2.0以降、サーバー起動後はコンソールに出力はありません。プロセスは生き続け、MCPクライアントからのstdioメッセージを待ちます。新しいターミナルセッションでデバッガを使用して確認できます。

インスペクターを起動:

npx -y @modelcontextprotocol/inspector

次にインスペクターUIで:

  • トランスポート: stdio

  • コマンド: uv

  • 引数: run, python, main.py

  • 作業ディレクトリ: ~path-to-directory/local-mcp-with-docker

インスペクターには登録されたツールrun_commandが表示され、直接呼び出すことができます。

Related MCP server: mcp-stdio

Dockerイメージのビルド

docker build -t terminal_tool_docker .

これにより、Claude Desktop MCP設定で使用されるローカルDockerイメージが作成されます。

Claude Desktopの設定

これをClaude DesktopのMCP設定ファイルに追加します:

{
  "mcpServers": {
    "local-mcp-with-docker": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "--init",
        "-e",
        "DOCKER_CONTAINER=true",
        "-e",
        "WORKSPACE_DIR=/root/mcp/workspace",
        "-v",
        "path-to-directory/local-mcp-with-docker:/root/mcp/workspace",
        "terminal_tool_docker"
      ]
    }
  }
}

これにより、ワークスペースがコンテナにマウントされ、サーバーがコンテナ内の正しい作業ディレクトリを指すようになります。

Claudeのスクリーンショット

alt text

Install Server
F
license - not found
B
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • F
    license
    -
    quality
    D
    maintenance
    A basic MCP server implementation for testing purposes. Communicates via stdio and is designed to work with MCP-compliant clients.
  • A
    license
    -
    quality
    C
    maintenance
    A minimal, zero-dependency MCP server that enables defining and running tools over stdio transport, without extra features like HTTP or resources.
    15
    1
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    A minimal MCP server that provides a single 'hello' tool returning 'Hello, world!'.
    2
    9
    MIT

View all related MCP servers

Related MCP Connectors

  • An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform

  • A basic MCP server to operate on the Postman API.

  • Scans MCP servers for tool poisoning, prompt injection and supply chain risks.

View all MCP Connectors

Latest Blog Posts

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/praveen-radakirouchenane/local-mcp-with-docker'

If you have feedback or need assistance with the MCP directory API, please join our Discord server