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.1.9.tar.gz (25.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.1.9-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mcp_server_testing-0.1.9.tar.gz
Algorithm Hash digest
SHA256 74909e8533e205b6ef1e026e4f7e326cd53621039960994cbd90e8480db8bfbc
MD5 d62cad3f8787a587223169b2fd8077b7
BLAKE2b-256 84ff9d3df3b7dddf803a80e607074b646b1c34adc4d439c36cbdceca079f0d91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_server_testing-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 97a8c5e885a0b3385adf145096beda7fcd7a3c2f96b1705193087253a5f79788
MD5 724eff3f92f20f62c812fdef7efa9119
BLAKE2b-256 b716ccc8c1d12d4192c3a0c6dc597d1d66473a9bdc14d0f14c1ef64fa3ff13fd

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