MCP.so
登录

Python MCP Server Project

@donohue76

基本信息

分类

其他

传输方式

stdio

作者

donohue76

关于 Python MCP Server Project

Model Context Protocol server

Python MCP Server Project 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

Python MCP Server Project 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Python MCP Server Project?

This project implements a Model Context Protocol (MCP) server using Python. It exposes local capabilities like file system access and command execution to MCP clients such as AI agents or language models, and is fully containerized with Docker.

How to use Python MCP Server Project?

Build the Docker image with docker build -t mcp-server ., then run the container with docker run -d ... providing environment variables and volume mounts. Use the /health endpoint or the provided Python test client to verify the server.

Key features of Python MCP Server Project

  • File system directory creation and listing.
  • File writing and reading.
  • Shell command execution inside the container.
  • Fully containerized with Docker for easy deployment.
  • Configurable via environment variables (port, base directory, shell commands toggle).

Use cases of Python MCP Server Project

  • Allowing AI agents to create, read, and write files on a host machine.
  • Enabling language models to execute shell commands within a controlled container.
  • Providing structured file system access for MCP-based tools and workflows.

常见问题

1

What tools does the server expose?

It exposes five tools: `file_system_create_directory`, `file_system_write_file`, `file_system_read_file`, `file_system_list_directory`, and `execute_shell_command`.

2

How do I enable or disable shell command execution?

Set the environment variable `ALLOW_ARBITRARY_SHELL_COMMANDS` to `"true"` (enabled) or `"false"` (disabled) when running the Docker container.

3

What are the runtime requirements?

The server requires Docker Desktop with WSL2 integration (on Windows) or Docker on Linux. The client-side test script needs Python 3.12+ with `venv`.

4

How does data persistence work?

File system tools operate on a base working directory inside the container. You can mount a host directory into that path using a Docker volume mount to persist data on the host.

5

How is the server served?

The server uses Uvicorn as the ASGI server and Starlette as the ASGI framework, with the MCP server built using `FastMCP` from the `mcp` Python SDK.

评论

其他 分类下的更多 MCP 服务器