Tester MCP

v1.0.0Developer Toolsstable

CLI-based tester for verifying that MCP servers work correctly when called directory and by agents

testermcpai-integration
Share:
35
Stars
0
Downloads
0
Weekly
0/5

What is Tester MCP?

Tester MCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to cli-based tester for verifying that mcp servers work correctly when called directory and by agents

CLI-based tester for verifying that MCP servers work correctly when called directory and by agents

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • CLI-based tester for verifying that MCP servers work correct

Use Cases

Verify MCP servers work correctly when called directly.
Test MCP server behavior with AI agents.
Validate MCP implementations before deployment.
steviec

Maintainer

LicenseMIT
Languagetypescript
Versionv1.0.0
UpdatedMay 6, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx tester

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Tester MCP

MCP Server Tester is an implementation-agnostic CLI tool for automated testing of any MCP server. It provides three distinct test modes: direct MCP tool tests that verify tools work correctly with API calls (no LLM needed), LLM eval tests that verify AI agents can discover and use your tools reliably, and a compliance mode that checks spec adherence as the MCP protocol evolves. It is designed to catch regressions and ensure real-world LLM usability, not just unit-level correctness.

Prerequisites

  • Node.js 18+ to run the tester via npx
  • An ANTHROPIC_API_KEY environment variable for eval tests that invoke LLMs (not needed for direct tool tests)
  • A running MCP server to test, along with its server config JSON
  • YAML test definition files for your tools and eval scenarios
1

Create a server config file for your MCP server under test

Create a JSON file describing how to launch the MCP server you want to test. This is the same format as Claude Desktop's mcpServers config.

{
  "mcpServers": {
    "my-server": {
      "command": "node",
      "args": ["./my-server.js"]
    }
  }
}
2

Discover available tools in your server

Use the MCP inspector to list all tools exposed by your server so you know what to write tests for.

npx -y @modelcontextprotocol/inspector --cli \
  --config my-server-config.json \
  --server my-server \
  --method tools/list
3

Create a tool-tests.yaml file

Write direct tool tests in YAML. Each test specifies a tool name, parameters, and expected outcome. These tests run without any LLM.

tools:
  expected_tool_list: ['write_file', 'read_file']
  tests:
    - name: 'Write file successfully'
      tool: 'write_file'
      params: { path: '/tmp/test.txt', content: 'Hello world' }
      expect: { success: true }
    - name: 'Read file returns content'
      tool: 'read_file'
      params: { path: '/tmp/test.txt' }
      expect: { success: true }
4

Run direct tool tests

Execute the tools test suite against your server. No API key is needed. Results show per-test pass/fail with expected vs actual output.

npx mcp-server-tester tools tool-tests.yaml --server-config my-server-config.json
5

Create an eval-tests.yaml file and run LLM eval tests

Write eval tests that describe tasks in natural language and verify the LLM called the right tools. Set ANTHROPIC_API_KEY before running.

export ANTHROPIC_API_KEY="your-key"
npx mcp-server-tester evals eval-tests.yaml --server-config my-server-config.json

Tester MCP Examples

Eval test configuration example

A minimal eval-tests.yaml showing how to specify a natural language prompt, required tool calls, and an LLM-judge scoring criterion.

{
  "evals": {
    "models": ["claude-3-5-haiku-latest"],
    "tests": [
      {
        "name": "LLM can write files",
        "prompt": "Create a file at /tmp/greeting.txt with the content 'Hello'",
        "expected_tool_calls": {
          "required": ["write_file"]
        },
        "response_scorers": [
          {
            "type": "llm-judge",
            "criteria": "Did the assistant successfully create the file?",
            "threshold": 0.8
          }
        ]
      }
    ]
  }
}

Prompts to try

Tester is a CLI tool, not an interactive server. These are the commands you run to exercise it.

- npx mcp-server-tester tools tool-tests.yaml --server-config server-config.json
- npx mcp-server-tester evals eval-tests.yaml --server-config server-config.json
- npx mcp-server-tester compliance --server-config server-config.json
- npx -y mcp-server-tester --help

Troubleshooting Tester MCP

Eval tests fail with 'ANTHROPIC_API_KEY not set'

The evals command requires an Anthropic API key to call LLMs as the test subject. Export the key before running: export ANTHROPIC_API_KEY=your-key. Direct tool tests (the tools command) do not require any API key.

Tool tests report 'server not found' or connection refused

Check that the command and args in your server config JSON correctly launch your MCP server. Test by running the command manually in a terminal. The server-config format must use the same mcpServers structure as Claude Desktop config.

Eval tests pass locally but the LLM calls the wrong tools

Tool selection by LLMs is non-deterministic. Add required tool calls to expected_tool_calls and set a realistic threshold (0.7-0.8) in your llm-judge scorer. If a specific tool is never called, improve the tool's description in your MCP server to make its purpose clearer.

Frequently Asked Questions about Tester MCP

What is Tester MCP?

Tester MCP is a Model Context Protocol (MCP) server that cli-based tester for verifying that mcp servers work correctly when called directory and by agents It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Tester MCP?

Follow the installation instructions on the Tester MCP GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Tester MCP?

Tester MCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Tester MCP free to use?

Yes, Tester MCP is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "tester": { "command": "npx", "args": ["-y", "tester"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Tester MCP?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides