Testing library for MCP servers — in-memory test client, Vitest/Jest matchers, and test doubles for sampling and elicitation.
MCPpedia last refreshed this data
MCP Testlib is an MCP server that testing library for MCP servers — in-memory test client, Vitest/Jest matchers, and test doubles for sampling and elicitation. Its tool list has not been published yet over sse and http, requires no API key, and scores 54/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"mcp-testlib": {
"args": [
"-y",
"mcp-testlib"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
The assertion and testing layer for MCP servers. What supertest and Testing Library are to HTTP and React, mcp-testlib is to the Model Context Protocol: an in-memory test client, a matcher pack for Vitest, and test doubles for the client-side behavior your server asks for (sampling, elicitation, roots) — so you can test a server without hand-rolling a transport or digging into result.content[0].
Run this in your terminal to verify the server starts. Then let us know if it worked - your result helps other developers.
npx -y 'mcp-testlib' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked mcp-testlib against OSV.dev.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in developer-tools
Manage Supabase projects — databases, auth, storage, and edge functions
MCP server for using the GitLab API
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
A NestJS module to effortlessly create Model Context Protocol (MCP) servers for exposing AI tools, resources, and prompts.
MCP Security Weekly
Get CVE alerts and security updates for MCP Testlib and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.