Apidog Tests Mcp

io.github.acabalaPublished by GitHub account acabalav0.0.5Updated Oct 24, 2026

MCP server for managing Apidog test cases, scenarios, suites, and test data

Overview

AI-generated overview

A local MCP server that gives an AI assistant read and write access to Apidog test cases, scenarios, suites, test data and folders.

What you can do
List environments, API endpoints, categories, tags, runners and endpoint coverage statistics (read-only). Create, read, update, bulk-create and delete test cases for API endpoints. Build, inspect, update and delete multi-step test scenarios and their steps. Create, inspect, update and delete test suites and their items. Manage CSV-based test data records and create or delete scenario and suite folders.
When to use it
Useful when you keep API tests in Apidog and want an assistant to draft, bulk-create, reorganize or clean up test cases, scenarios, suites and data-driven test data without switching to the Apidog UI.
Requirements
Runs locally over stdio, typically via npx or a global npm install, so Node.js is needed. Requires the environment variables APIDOG_ACCESS_TOKEN, APIDOG_PROJECT_ID and APIDOG_BRANCH_ID; APIDOG_BASE_URL is optional and defaults to the Apidog cloud API. Network access to Apidog is required.
Before you install
The server has write access: tools can create, update and delete test cases, scenarios, suites, test data and folders in the configured Apidog project and branch. It needs an Apidog access token (APIDOG_ACCESS_TOKEN); use a dedicated automation token scoped to the minimum project, rotate it, and keep client config files private. It is not an official Apidog integration.

Installation

In SourceWeft

  1. Open Apidog Tests Mcp in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

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/suites
  • SECURITY.md -- vulnerability reporting and secure usage guidelines
  • CONTRIBUTING.md -- contribution workflow
  • CHANGELOG.md -- release notes

Installation

bash
npm install -g @acabala/apidog-tests-mcp

Or use directly with npx:

bash
npx @acabala/apidog-tests-mcp

Configuration

The server requires these environment variables:

VariableRequiredDescription
APIDOG_ACCESS_TOKENYesYour Apidog access token
APIDOG_PROJECT_IDYesThe Apidog project ID
APIDOG_BRANCH_IDYesThe branch ID to work with
APIDOG_BASE_URLNoOverride the API base URL (default: https://api.apidog.com/api/v1)

MCP Client Configuration

Add to your MCP client config (e.g. Claude Desktop claude_desktop_config.json):

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

ToolDescription
list_environmentsList all environments with base URLs
list_api_endpointsList API endpoint tree (filterable by module and name)
list_test_case_categoriesList test case categories
list_test_case_tagsList available tags
list_runnersList self-hosted test runners
get_endpoint_statisticsGet test coverage statistics

Test Cases

ToolDescription
list_test_casesList all test cases (filterable by endpoint)
get_test_caseGet full test case details
create_test_caseCreate a test case for an endpoint
create_test_cases_bulkCreate multiple test cases at once
update_test_caseUpdate a test case (GET-then-merge)
delete_test_caseDelete a test case

Test Scenarios

ToolDescription
list_test_scenariosList scenarios with folder structure
get_test_scenario_stepsGet steps for a scenario
create_test_scenarioCreate a multi-step test scenario
update_test_scenario_stepsSet/replace scenario steps
delete_test_scenarioDelete a scenario

Test Suites

ToolDescription
list_test_suitesList suites with folder structure
get_test_suiteGet full suite details
create_test_suiteCreate a test suite
update_test_suite_itemsSet suite items (static/dynamic groups)
delete_test_suiteDelete a suite

Test Data

ToolDescription
list_test_dataList test data records for a test case
get_test_dataGet test data with CSV rows and columns
create_test_dataCreate test data for a test case
update_test_dataUpdate test data (GET-then-merge)
delete_test_dataDelete a test data record

Folders

ToolDescription
create_scenario_folderCreate a scenario folder
delete_scenario_folderDelete a scenario folder
create_suite_folderCreate a suite folder

Development

bash
# Install dependenciesnpm install
# Run in development modenpm run start:dev
# Type checknpm run typecheck
# Formatnpm run format
# Run testsnpm test
# Run tests with coveragenpm run test:coverage
# Build for productionnpm run build

Security

  • Use a dedicated automation token with minimal required permissions.
  • Never commit APIDOG_ACCESS_TOKEN or environment-specific IDs.
  • Keep local MCP client config files private.
  • See SECURITY.md for 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 changeset
  • Release automation creates/updates a version PR on main
  • Merged release PR publishes to npm with provenance

Open Source Guidelines

  • Contribution guide: CONTRIBUTING.md
  • Code of conduct: CODE_OF_CONDUCT.md
  • Changelog: CHANGELOG.md

Practical Tips

  • Always include path and parameters.path when creating route-parameterized test cases.
  • For update operations, prefer this server's merge-style tools over raw full-replace payloads.
  • Use customScript post-processors for assertions to avoid runner issues with declarative assertions.
  • See docs/PRACTICAL-USAGE.md for 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 tools

License

MIT License

Source: README.md at commit f35de66

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.0.5LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts