apidog-tests-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@apidog-tests-mcplist all test cases"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
apidog-tests-mcp
MCP (Model Context Protocol) server for managing Apidog test cases, scenarios, suites, and test data. Gives AI assistants full read/write access to Apidog's test management features.
This project is not an official Apidog integration.
Features
Test Cases -- Create, read, update, delete, and bulk-create test cases for API endpoints
Test Scenarios -- Build multi-step test flows chaining multiple API calls
Test Suites -- Organize tests into runnable suites for CI/CD
Test Data -- Manage data-driven test iterations with CSV-formatted data
Folders -- Organize scenarios and suites into nested folder structures
Read-only tools -- List environments, endpoints, categories, tags, runners, and coverage statistics
Documentation
docs/PRACTICAL-USAGE.md-- proven patterns for creating stable test cases/scenarios/suitesSECURITY.md-- vulnerability reporting and secure usage guidelinesCONTRIBUTING.md-- contribution workflowCHANGELOG.md-- release notes
Installation
npm install -g @acabala/apidog-tests-mcpOr use directly with npx:
npx @acabala/apidog-tests-mcpConfiguration
The server requires these environment variables:
Variable | Required | Description |
| Yes | Your Apidog access token |
| Yes | The Apidog project ID |
| Yes | The branch ID to work with |
| No | Override the API base URL (default: |
MCP Client Configuration
Add to your MCP client config (e.g. Claude Desktop claude_desktop_config.json):
{
"mcpServers": {
"apidog-tests": {
"command": "npx",
"args": ["@acabala/apidog-tests-mcp"],
"env": {
"APIDOG_ACCESS_TOKEN": "your-token",
"APIDOG_PROJECT_ID": "your-project-id",
"APIDOG_BRANCH_ID": "your-branch-id"
}
}
}
}Recommended Token Practices
Use a dedicated token for automation.
Scope access to the minimum required Apidog project(s).
Rotate tokens regularly.
Keep MCP client config files local/private.
Available Tools
Read-only
Tool | Description |
| List all environments with base URLs |
| List API endpoint tree (filterable by module and name) |
| List test case categories |
| List available tags |
| List self-hosted test runners |
| Get test coverage statistics |
Test Cases
Tool | Description |
| List all test cases (filterable by endpoint) |
| Get full test case details |
| Create a test case for an endpoint |
| Create multiple test cases at once |
| Update a test case (GET-then-merge) |
| Delete a test case |
Test Scenarios
Tool | Description |
| List scenarios with folder structure |
| Get steps for a scenario |
| Create a multi-step test scenario |
| Set/replace scenario steps |
| Delete a scenario |
Test Suites
Tool | Description |
| List suites with folder structure |
| Get full suite details |
| Create a test suite |
| Set suite items (static/dynamic groups) |
| Delete a suite |
Test Data
Tool | Description |
| List test data records for a test case |
| Get test data with CSV rows and columns |
| Create test data for a test case |
| Update test data (GET-then-merge) |
| Delete a test data record |
Folders
Tool | Description |
| Create a scenario folder |
| Delete a scenario folder |
| Create a suite folder |
Development
# Install dependencies
npm install
# Run in development mode
npm run start:dev
# Type check
npm run typecheck
# Format
npm run format
# Run tests
npm test
# Run tests with coverage
npm run test:coverage
# Build for production
npm run buildSecurity
Use a dedicated automation token with minimal required permissions.
Never commit
APIDOG_ACCESS_TOKENor environment-specific IDs.Keep local MCP client config files private.
See
SECURITY.mdfor reporting and response policy.
Release and Versioning
This repository uses Changesets and a GitHub Actions release workflow:
Add a changeset for user-visible changes:
npm run changesetRelease automation creates/updates a version PR on
mainMerged release PR publishes to npm with provenance
Open Source Guidelines
Contribution guide:
CONTRIBUTING.mdCode of conduct:
CODE_OF_CONDUCT.mdChangelog:
CHANGELOG.md
Practical Tips
Always include
pathandparameters.pathwhen creating route-parameterized test cases.For update operations, prefer this server's merge-style tools over raw full-replace payloads.
Use
customScriptpost-processors for assertions to avoid runner issues with declarative assertions.See
docs/PRACTICAL-USAGE.mdfor complete examples.
Project Structure
src/
index.ts Entry point, registers tools and starts MCP server
client.ts ApidogClient HTTP wrapper with auth headers
types.ts Shared TypeScript interfaces and MCP result helpers
errors.ts Custom error classes (ApidogApiError, ApidogConfigError)
schemas.ts Shared Zod schemas for request parameters
tools/
read.ts Read-only tools (environments, endpoints, categories, etc.)
test-cases.ts Test case CRUD tools
test-scenarios.ts Test scenario CRUD tools
test-suites.ts Test suite CRUD tools
test-data.ts Test data CRUD tools
folders.ts Folder management toolsLicense
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/acabala/apidog-tests-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server