概览
What is touch-mcp-server?
touch-mcp-server is a Go-based MCP Server that creates files from user input. It is designed as a starting project for learning MCP Server development.
How to use touch-mcp-server?
Clone the repository, run go install, then add the server to your MCP client configuration (e.g., in VSCode with the Cline plugin) using the command ~/go/bin/touch-mcp-server and optionally setting the DEFAULT_TOUCH_PATH environment variable.
Key features of touch-mcp-server
- Creates files based on user input
- Written in Go (Golang)
- Uses JSON‑RPC 2.0 for communication
- Configurable default file creation directory
- Includes reference implementations in Rust and Python
Use cases of touch-mcp-server
- Learning how to build an MCP Server from scratch
- Automating file creation via an AI assistant
- Prototyping MCP integrations that need basic file output
FAQ from touch-mcp-server
What programming language is touch-mcp-server written in?
It is written in Go (Golang).
How do I configure the default file creation path?
Set the environment variable DEFAULT_TOUCH_PATH (e.g., to /tmp) in your MCP client’s server configuration.
What transport protocol does touch-mcp-server use?
The server communicates using the JSON‑RPC 2.0 protocol, as described in the project’s documentation.
Are there implementations in other languages?
Yes, the repository includes parallel implementations in Rust and Python under the docs/ directory.
What dependencies are required to run touch-mcp-server?
You need Go installed to build and run the server from source. No runtime dependencies beyond Go are mentioned.