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
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"
- Choices:
-
--host: Host to bind the server- Default:
localhost - Description: Specifies the host address the server should bind to
- Default:
-
--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 informationinfo: General runtime information (default)warning: Potential issues that do not affect executionerror: Errors that occur during execution
-
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...
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_server_testing-0.1.5.tar.gz.
File metadata
- Download URL: mcp_server_testing-0.1.5.tar.gz
- Upload date:
- Size: 25.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4ee90bc13529d95e28903199f451715df88a2180c62d19ff6a65e169eac2598
|
|
| MD5 |
909c4d8b93e68800bd86c647cb688bf7
|
|
| BLAKE2b-256 |
e9993e5514508d6501e3bd7ddf85938a77e1fe19a6e49f7b175e17259c15dbdc
|
File details
Details for the file mcp_server_testing-0.1.5-py3-none-any.whl.
File metadata
- Download URL: mcp_server_testing-0.1.5-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94275882f846b8fb377cda83710cc7fdfec47120e6f92636d1f36c0787eacad2
|
|
| MD5 |
d362e7ba81b93294886be865fb1703c3
|
|
| BLAKE2b-256 |
55c21ba8af1bc8cf94a24687dc68942952d148c45e994a2ca71076a3d42569c9
|