Skip to main content

A test server implementation for Model Context Protocol (MCP)

Project description

MCP Test Server

This project is a test server implementation for the Model Context Protocol (MCP). It uses the FastMCP framework to provide basic MCP server functionality.

Available Tools

greet

A function that receives a name and returns a greeting message.

  • name (string, required): The name to greet
    • Returns: A string containing the greeting message

Installation

Using uv (Recommended)

No special installation is required when using uv. You can run mcp-server-testing directly using uvx.

Using PIP

Alternatively, you can install mcp-server-testing using pip:

pip install mcp-server-testing

After installation, you can run the script as follows:

mcp-server-testing

Configuration

Configure for Claude.app

Add to your Claude settings:

Using uvx
{
  "mcpServers": {
    "testing": {
      "command": "uvx",
      "args": ["mcp-server-testing"]
    }
  }
}

Configure for VS Code

For quick installation, use one of the one-click install buttons below...

Install with UV in VS Code

Command Line Options

You can specify the following options when running the server:

  • --sse: Enable SSE transport

    • Choices: on, off
    • Default: off
    • Description: Enables SSE transport when set to "on"
  • --host: Host to bind the server

    • Default: localhost
    • Description: Specifies the host address the server should bind to
  • --port: Port to bind the server

    • Type: Integer
    • Default: 8000
    • Description: Specifies the port number for the server to bind to
  • --log-level: Set the logging level

    • Choices: debug, info, warning, error

    • Default: info

    • Description:

      • debug: Detailed debugging information
      • info: General runtime information (default)
      • warning: Potential issues that do not affect execution
      • error: Errors that occur during execution

Development

This project serves as a basic implementation example of an MCP server. To add new features, implement them in server.py.

During development, you can test your scripts with the following commands:

uv pip install -e .
mcp-server-testing

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_testing-0.2.0.tar.gz (26.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_testing-0.2.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_testing-0.2.0.tar.gz.

File metadata

  • Download URL: mcp_server_testing-0.2.0.tar.gz
  • Upload date:
  • Size: 26.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for mcp_server_testing-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f7814cf5e4555840c7e099dc291cee8887e7d72535f834a37d45f0e8ea4410f4
MD5 8f89039b0e9e06a0d76f31fbfd2e2922
BLAKE2b-256 0c96b19c6edb122e6f58ceac3c4919a6e3e953380f0183ef4fd453b92f61a3cb

See more details on using hashes here.

File details

Details for the file mcp_server_testing-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_testing-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c841bf2c2b7336068d06fa8a963ba82bc42f34798f23ede3d0a57e2eccff7b72
MD5 4ded137a2b736e3cb9700bd5c9640f0a
BLAKE2b-256 c3d636c77bb95e2476b0c27b1a9cbfaa58598b923e8aa795df647bb7d60b377a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page