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:

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.1.8.tar.gz (25.2 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.1.8-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mcp_server_testing-0.1.8.tar.gz
Algorithm Hash digest
SHA256 a4864ddc5cb83890f6c3acb588045a2b221eadc5b9e47fdebabc91964e685c30
MD5 59409719036e311ccb086c4c00d597df
BLAKE2b-256 829fcbd820c1e1e4088d649c571891df26a6eeb50caa397618e202b18f104f6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_server_testing-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 58d8faac7e3134137601813d452a5dca96a3bbc56cc58f83c69d5618751e96d5
MD5 b329e953aec486889cb02bf5ce79749c
BLAKE2b-256 e58e87f9646c9faecfbbda7ce6eae7bb526fd04579fb178ad949db9123c7ba57

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