MCP Test Client
MCP Test Client is a TypeScript testing utility for Model Context Protocol (MCP) servers.
Overview
MCP Test Client is a TypeScript testing utility designed for Model Context Protocol (MCP) servers, enabling users to test server implementations effectively.
To use MCP Test Client, install it via bun install mcp-test-client, then import it in your TypeScript tests to create an instance and interact with your MCP server.
- Easy-to-use testing interface for MCP servers - Built-in support for tool listing and tool calls - Type-safe implementation using TypeScript - Assertion utilities for validating server responses - Mock calculator server implementation for examples
- Testing various tool calls on MCP servers.
- Validating server responses against expected outcomes.
- Learning and experimenting with MCP server functionalities using the mock calculator server.
Add to your AI client
Use these steps to connect MCP Test Client in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-test-client-crazyrabbitltc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-test-client-crazyrabbitltc"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-test-client-crazyrabbitltc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-test-client-crazyrabbitltc"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-test-client-crazyrabbitltc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-test-client-crazyrabbitltc"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-test-client-crazyrabbitltc": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-test-client-crazyrabbitltc"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-test-client-crazyrabbitltc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-test-client-crazyrabbitltc"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-test-client-crazyrabbitltc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-test-client-crazyrabbitltc"
]
}
}
}FAQ
What is the purpose of MCP Test Client?
It is designed to facilitate testing of MCP server implementations by providing a simple interface for making tool calls and validating responses.
Is MCP Test Client easy to set up?
Yes! It can be easily installed and set up with minimal configuration.
Can I use MCP Test Client for any MCP server?
Yes! As long as the server adheres to the Model Context Protocol, this client can be used.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1181,"uuid":"05e23518-cc91-4aac-8b55-dd4c8f8c6c1d","name":"mcp-test-client","title":"MCP Test Client","description":"MCP Test Client is a TypeScript testing utility for Model Context Protocol (MCP) servers.","avatar_url":"https://avatars.githubusercontent.com/u/1938013?v=4","created_at":"2025-01-28T02:36:22.066Z","updated_at":"2025-02-23T07:20:28.082Z","status":"created","author_name":"crazyrabbitLTC","author_avatar_url":"https://avatars.githubusercontent.com/u/1938013?v=4","tags":"mcp-test-client,testing-utility,typescript","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/crazyrabbitLTC/mcp-test-client","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]