mcp-server-test

mcp-server-test

3.1

If you are the rightful owner of mcp-server-test and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This is an educational implementation of a Model Context Protocol (MCP) server in Go using the Echo framework, providing access to the local filesystem through the MCP protocol.

The Model Context Protocol (MCP) is an open standard that enables developers to build secure, two-way connections between their data sources and AI-powered tools. This implementation demonstrates how to create an MCP server that provides access to the local filesystem. It includes basic path sanitization to prevent directory traversal attacks, but it is intended for educational purposes only. In a production environment, additional security measures would be necessary, such as user authentication and authorization, more robust input validation, rate limiting, audit logging, and sandboxing.

Features

  • Filesystem Provider: Provides access to the local filesystem through MCP tools and resources.
  • Tools: Includes filesystem.list, filesystem.read, filesystem.write, and filesystem.delete for managing files and directories.
  • Resources: Includes filesystem.file and filesystem.directory to represent files and directories in the filesystem.

Tools

  1. filesystem.list

    Lists the contents of a directory.

  2. filesystem.read

    Reads the contents of a file.

  3. filesystem.write

    Writes content to a file.

  4. filesystem.delete

    Deletes a file or directory.