Sponsored by Deepsite.site

Apidog Tests Mcp

Created By
acabala25 days ago
Unofficial Apidog MCP server, that gives ability to work with testing features of ApiDog.
Overview

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

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

Or use directly with npx:

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):

{
	"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"
			}
		}
	}
}
  • 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

# 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 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

Server Config

{
  "mcpServers": {
    "apidog-tests": {
      "command": "npx",
      "args": [
        "apidog-tests-mcp"
      ],
      "env": {
        "APIDOG_ACCESS_TOKEN": "your-token",
        "APIDOG_PROJECT_ID": "your-project-id",
        "APIDOG_BRANCH_ID": "your-branch-id",
        "APIDOG_DEVICE_ID": "your-device-id"
      }
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
CursorThe AI Code Editor
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
ChatWiseThe second fastest AI chatbot™
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Amap Maps高德地图官方 MCP Server
Serper MCP ServerA Serper MCP Server
Playwright McpPlaywright MCP server
DeepChatYour AI Partner on Desktop
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
WindsurfThe new purpose-built IDE to harness magic
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Tavily Mcp
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
RedisA Model Context Protocol server that provides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.