Skip to main content
Glama

Echo MCP Server

by piebro

echo-mcp-server-for-testing

A simple echo MCP (Model Context Protocol) Server with a simple echo_tool for testing MCP Clients. It is also great as a template for new MCP Servers.

Usage

Install uv and add the server to an MCP config using uvx:

{ "name": "echo-mcp-server-for-testing", "command": "uvx", "args": [ "echo-mcp-server-for-testing" ], "env": { "SECRET_KEY": "123456789" } }

or clone the repo and use uv with a directory:

{ "name": "echo-mcp-server-for-testing", "command": "uv", "args": [ "--directory", "path/to/root/dir/", "run", "main.py" ], "env": { "SECRET_KEY": "123456789" } }

Development

Testing

Clone the repo and use mcp-client-for-testing to test the tools of the server.

uvx mcp-client-for-testing \ --config ' [ { "name": "echo-mcp-server-for-testing", "command": "uv", "args": [ "--directory", "path/to/root/dir/", "run", "main.py" ], "env": { "SECRET_KEY": "123456789" } } ] ' \ --tool_call '{"name": "echo_tool", "arguments": {"message": "Hello, world!"}}'

Formatting and Linting

The code is formatted and linted with ruff:

uv run ruff format uv run ruff check --fix

Building with uv

Build the package using uv:

uv build

Releasing a New Version

To release a new version of the package to PyPI, create and push a new Git tag:

  1. Checkout the main branch and get the current version:
    git checkout main git pull origin main git describe --tags
  2. Create and push a new Git tag:
    git tag v0.2.0 git push origin v0.2.0

The GitHub Actions workflow will automatically build and publish the package to PyPI when a new tag is pushed. The python package version number will be derived directly from the Git tag.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

A simple server implementing the Model Context Protocol (MCP) that echoes messages back, designed for testing MCP clients.

  1. Usage
    1. Development
      1. Testing
      2. Formatting and Linting
      3. Building with uv
      4. Releasing a New Version
    2. License

      Related MCP Servers

      • A
        security
        A
        license
        A
        quality
        A beginner-friendly Model Context Protocol (MCP) server that helps users understand MCP concepts, provides interactive examples, and lists available MCP servers. This server is designed to be a helpful companion for developers working with MCP. Also comes with a huge list of servers you can install.
        Last updated -
        3
        422
        61
        JavaScript
        Apache 2.0
      • -
        security
        A
        license
        -
        quality
        A demonstration server that implements the Model Context Protocol (MCP) SDK, providing tools and endpoints for server-sent events and message handling.
        Last updated -
        22
        8
        TypeScript
        MIT License
      • -
        security
        A
        license
        -
        quality
        An implementation of the Model Context Protocol (MCP) server that enables multiple clients to connect simultaneously and handles basic context management and messaging with an extendable architecture.
        Last updated -
        Python
        MIT License
      • -
        security
        F
        license
        -
        quality
        A minimal example server implementing the Model Context Protocol, providing addition and multiplication tools for learning and experimentation with MCP clients.
        Last updated -
        Python

      View all related MCP servers

      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/piebro/echo-mcp-server-for-testing'

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