Keploy — Claude Code MCP server: tests and setup
Keploy lets an agent create and run API tests from OpenAPI, curl, Postman, or captured application traffic.
claude mcp add --transport http keploy https://api.keploy.io/client/v1/mcpWhat Keploy does
Keploy connects to Claude Code as an MCP server for API and integration testing. It captures application calls to APIs, database requests, and streaming activity, then turns that traffic into replayable test cases and mocks.
The underlying tool observes traffic at the network layer with eBPF, so recording does not require an SDK or code edits. Test input can come from OpenAPI, curl, Postman, or real user flows. Recording depends on starting the application with keploy record, such as keploy record -c "python main.py".
What it helps with
- generate API tests from an OpenAPI schema
- turn real application traffic into tests and mocks
- replay database interactions without provisioning the same infrastructure
- cover boundary values and invalid field types in API tests
Example prompts for the agent
- Connect Keploy and create API tests from this project's OpenAPI schema.
- Record this user flow with Keploy, then replay it as an integration test with mocks.
- Find the API and database interactions that should be mocked for this test.
How to install Keploy
Platform CLI: remote server
claude mcp add --transport http keploy https://api.keploy.io/client/v1/mcpPlatform CLI: remote server
codex mcp add keploy --url https://api.keploy.io/client/v1/mcpConfig file
{
"mcpServers": {
"keploy": {
"url": "https://api.keploy.io/client/v1/mcp"
}
}
}Config file
{
"servers": {
"keploy": {
"type": "http",
"url": "https://api.keploy.io/client/v1/mcp"
}
}
}Platform CLI: remote server
gemini mcp add -t http keploy https://api.keploy.io/client/v1/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Keploy
How do I install Keploy in Claude Code?
Run claude mcp add --transport http keploy https://api.keploy.io/client/v1/mcp.
What does Keploy do?
Keploy turns API calls, database requests, and streaming activity into tests and mocks that can be replayed without external dependencies.
Does recording require application code changes?
No. Keploy observes traffic with eBPF at the network layer, so recording does not require an SDK or code changes.