MCP.so
登录

Python MCP Server Project

@donohue76

关于 Python MCP Server Project

Model Context Protocol server

基本信息

分类

其他

运行时

python

传输方式

stdio

发布者

donohue76

配置

暂无标准配置

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

代码仓库

工具

未检测到工具

工具是从 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.

FAQ from Python MCP Server Project

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.

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.

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.

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.

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 服务器