API Lab MCPのロゴ

API Lab MCP

コミュニティ
atototo

api test mcp

公開者atototo
リポジトリapi-lab-mcp
言語TypeScript
フォーク
3
スター
11
利用可能なツール
14
通信方式stdio, streamable-http
カテゴリ
リンク
  • ツールをAIワークフローに接続

    API Lab MCPは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 14個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには11件のスターと3件のフォークがあります。

API Lab MCP 🧪

npm version License: MIT MCP Compatible Claude Desktop

Transform Claude into your AI-powered API testing laboratory. Test, debug, and document APIs through natural conversation.

🌟 Why API Lab MCP?

Stop switching between tools. Stop writing repetitive test scripts. Start having conversations with your APIs.

The Problem: Traditional API testing tools require constant context switching, manual script writing, and repetitive workflows that slow down development.

The Solution: API Lab MCP integrates directly with Claude Desktop and Claude Code, allowing you to test APIs through natural language while you code. No more jumping between Postman, terminal, and your IDE.

What makes it different?

  • 🤖 AI-First Design: Built specifically for Claude's conversational interface
  • 💬 Natural Language: Test APIs by describing what you want, not clicking through UIs
  • 🔄 Zero Context Switching: Stay in your development flow
  • 📚 Auto Documentation: Generate API docs from your test conversations
  • 🎯 Smart Assertions: Claude understands your intent and creates appropriate tests

✨ Key Features

  • 🔐 Universal Authentication - Bearer tokens, API keys, OAuth2, session cookies, and CSRF tokens
  • 📊 Intelligent Response Analysis - Automatic validation of status codes, headers, and JSON paths
  • ⚡ Real-time Performance Metrics - Response times, payload sizes, and Core Web Vitals
  • 🎯 Conversational Testing - Test complex scenarios through natural dialogue
  • 📋 Spec-based Test Generation - Auto-generate test suites from OpenAPI/Swagger docs
  • 🔄 Batch Testing - Run multiple APIs in parallel or sequence
  • 🧪 MCP Server Testing - Test other MCP servers' tools and resources
  • 🌍 Environment Management - Switch between dev, staging, and production seamlessly

🚀 Quick Start (30 seconds)

For Claude Code

bash
# Install globally
npm install -g api-lab-mcp

# Add to Claude Code
claude mcp add api-lab-mcp api-lab-mcp

# Start testing!
# Tell Claude: "Test my API at localhost:3000"

For Claude Desktop

bash
# Install via npm
npm install -g api-lab-mcp

# Then add to Claude Desktop config (see Installation section)

That's it! You're ready to test APIs with Claude.

📸 Live Demo with Claude Desktop

Watch API Lab MCP in action with Claude Desktop - testing real APIs through conversation:

Claude Desktop Demo

Real Results from Claude Desktop

"Test your APIs through natural conversation - in any language you prefer."

💡 Use Cases

For Development Teams

  • API Development: Test endpoints as you build them without leaving your IDE
  • Debugging: Quickly diagnose why an API is failing with intelligent analysis
  • Documentation: Auto-generate API docs from your test conversations
  • Onboarding: New team members can test APIs without learning complex tools

For QA Engineers

  • Test Automation: Generate test suites from OpenAPI specs automatically
  • Regression Testing: Run batch tests across all endpoints
  • Performance Testing: Monitor response times and identify bottlenecks
  • Session Testing: Test complex authentication flows with cookies and tokens

For DevOps

  • Health Checks: Monitor API availability across environments
  • Load Testing: Test API performance under various conditions
  • Environment Validation: Ensure APIs work correctly after deployment
  • Integration Testing: Test API integrations with third-party services

💬 Real-World Examples

Test a REST API

You: "Test the GitHub API to get my user info"
Claude: *Tests GET https://api.github.com/user with your token*

Debug a Failed Request

You: "Why is my login endpoint returning 401?"
Claude: *Analyzes headers, body, and suggests missing auth token*

Session-based Authentication

You: "Test my app with session cookie JSESSIONID=ABC123"
Claude: *Configures session and tests authenticated endpoints*

Performance Testing

You: "Check if all my endpoints respond under 200ms"
Claude: *Runs performance tests and generates report*

Generate Tests from Swagger

You: "Create tests from my OpenAPI spec at /api/docs"
Claude: *Generates comprehensive test suite automatically*

🔧 Installation

Claude Code Installation

bash
# Method 1: Global install (recommended)
npm install -g api-lab-mcp
claude mcp add api-lab-mcp api-lab-mcp

# Method 2: Using npx (no install needed)
claude mcp add api-lab-mcp "npx -y api-lab-mcp"

# Method 3: Local development
git clone https://github.com/atototo/api-lab-mcp.git
cd api-lab-mcp
npm install && npm run build
claude mcp add api-lab-local "node $(pwd)/dist/mcp/server.js"

Claude Desktop Installation

  1. Install the package:
bash
npm install -g api-lab-mcp
  1. Find your config file:
bash
# macOS
open ~/Library/Application\ Support/Claude/

# Linux
open ~/.config/claude/
  1. Edit claude_desktop_config.json:
json
{
  "mcpServers": {
    "api-lab-mcp": {
      "command": "npx",
      "args": ["-y", "api-lab-mcp"]
    }
  }
}
  1. Restart Claude Desktop
  1. Install the package:
powershell
npm install -g api-lab-mcp
  1. Open config folder:
powershell
explorer %APPDATA%\Claude
  1. Edit claude_desktop_config.json:
json
{
  "mcpServers": {
    "api-lab-mcp": {
      "command": "npx.cmd",
      "args": ["-y", "api-lab-mcp"]
    }
  }
}
  1. Restart Claude Desktop
dockerfile
FROM node:20-alpine
RUN npm install -g api-lab-mcp
EXPOSE 3000
CMD ["api-lab-mcp", "--http-mode"]

Run with:

bash
docker build -t api-lab-mcp .
docker run -p 3000:3000 api-lab-mcp

Verify Installation

After installation, ask Claude:

"Can you test the API at https://api.github.com?"

If Claude can test the API, installation was successful!

🏗️ For Developers

Local Development Workflow

API Lab MCP supercharges your local development:

Real-time API Testing

"Test POST /api/users on localhost:3000 with mock data"

Smart Debugging

"Why is this endpoint slow? Profile the response time"

Automatic Documentation

"Generate README docs from these test results"

Pre-deployment Validation

"Run health checks on all endpoints before I deploy"

Development Setup

bash
# Clone the repository
git clone https://github.com/atototo/api-lab-mcp.git
cd api-lab-mcp

# Install dependencies
npm install

# Run in development mode
npm run dev

# Build for production
npm run build

# Run tests
npm test

Architecture

api-lab-mcp/
├── src/
│   ├── mcp/              # MCP server implementation
│   ├── core/             # Core business logic
│   ├── http/             # HTTP client layer
│   └── types/            # TypeScript definitions
├── tests/                # Test suites
└── docs/                 # Documentation

📊 How It Compares

FeatureAPI Lab MCPPostmanInsomniaThunder Client
AI-Powered Testing✅ Native❌❌❌
Natural Language✅❌❌❌
Claude Integration✅❌❌❌
Zero Setup✅❌❌⚠️
Session Management✅✅✅✅
OpenAPI Support✅✅✅⚠️
MCP Protocol✅❌❌❌
Conversational UI✅❌❌❌
Auto Documentation✅⚠️⚠️❌
Free & Open Source✅⚠️⚠️✅

📚 Documentation

Core Tools

test_http_endpoint

Test any HTTP endpoint with full customization:

  • Supports all HTTP methods (GET, POST, PUT, DELETE, PATCH, etc.)
  • Custom headers and authentication (Bearer, API Key, Basic Auth)
  • Request body with JSON, form data, or raw content
  • Returns detailed response with status, headers, body, and timing

test_with_assertions

Advanced testing with intelligent response validation:

  • JSONPath expressions for nested data validation
  • Regex patterns for string matching
  • Status code verification
  • Response time thresholds
  • Custom assertion rules

test_with_session

Session-based authentication for complex flows:

  • Cookie jar management (JSESSIONID, session tokens)
  • CSRF token handling
  • Maintains session state across multiple requests
  • Perfect for testing authenticated user flows

batch_test

Run multiple API tests efficiently:

  • Parallel execution for performance
  • Sequential execution for dependent tests
  • Aggregated results and statistics
  • Ideal for regression testing and health checks

analyze_api_spec

Extract and understand OpenAPI/Swagger specifications:

  • Parse OpenAPI 2.0 and 3.0 specs
  • List all available endpoints
  • Understand request/response schemas
  • Generate sample requests automatically

generate_test_scenarios

AI-powered test generation from specs:

  • Creates comprehensive test suites from OpenAPI docs
  • Generates edge cases and boundary tests
  • Includes positive and negative test cases
  • Exports tests in various formats

Advanced Features

  • Smart Assertions: Validate responses with JSONPath, regex, and custom rules
  • Environment Management: Switch between dev/staging/prod seamlessly
  • Performance Profiling: Track response times and identify bottlenecks
  • Test Generation: Create tests from OpenAPI specs automatically
  • MCP Discovery: Find and test other MCP servers

Configuration Options

API Lab MCP works out of the box with zero configuration. You can customize behavior through tool parameters:

Tool-level Options

  • timeout: Request timeout in milliseconds (default: 30000) - available in all test tools
  • headers: Custom headers for requests - supports any HTTP headers
  • method: HTTP methods - GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS
  • body: Request payload - JSON, form data, or raw text

Environment Variables (HTTP Server Mode)

  • PORT: Server port for HTTP mode (default: 3001)
  • LOG_LEVEL: Logging verbosity - ERROR, WARN, INFO, DEBUG (default: INFO)

Common Issues & Solutions

Installation Issues

  • If npm install fails, try clearing npm cache: npm cache clean --force
  • On Windows, use npx.cmd instead of npx in the config

Connection Issues

  • Ensure the MCP server is listed in Claude's interface (look for the 🔌 icon)
  • Restart Claude Desktop after configuration changes
  • Check firewall settings for local development

Testing Issues

  • For large responses or slow APIs, increase timeout parameter in the tool call
  • Use session tools (test_with_session) for stateful API testing
  • For debugging, check Claude's developer console for detailed error messages

Full API Documentation →

🤝 Contributing

We love contributions! Whether it's a bug report, feature request, or pull request, all contributions are welcome.

bash
# Fork and clone
git clone https://github.com/YOUR_USERNAME/api-lab-mcp.git

# Create your feature branch
git checkout -b feature/amazing-feature

# Make your changes and commit
git commit -m 'Add amazing feature'

# Push and create PR
git push origin feature/amazing-feature

See CONTRIBUTING.md for detailed guidelines.

🌟 Success Stories

"API Lab MCP reduced our API testing time by 70%. We now test as we code, right in Claude." - Senior Developer at TechCorp

"The natural language interface is a game-changer. Junior developers can now write complex API tests." - CTO at StartupXYZ

"We replaced three different tools with just API Lab MCP. It's that powerful." - DevOps Lead

📈 Roadmap

  • Visual Studio Code extension
  • GraphQL support
  • WebSocket testing
  • Load testing capabilities
  • CI/CD integration
  • Test recording and replay
  • Team collaboration features

🛟 Support

📄 License

MIT © 2024 atototo


If API Lab MCP helps your development workflow, please consider giving it a ⭐

Star on GitHub

Built with ❤️ for developers who value their time

インストール

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "atototo-api-lab-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "api-lab-mcp"
      ]
    }
  }
}

利用可能なツール

  • test_http_endpoint

    Test an HTTP endpoint with various methods and options

  • test_with_assertions

    Test an HTTP endpoint with assertions for validation

  • set_auth_config

    Configure authentication for API testing (Bearer, Basic, API Key, or OAuth2)

  • set_session

    Set session-based authentication using cookies and optional headers (e.g., CSRF tokens)

  • test_with_auth

    Test an HTTP endpoint with authentication and optional assertions

  • test_with_session

    Test HTTP endpoint with session-based authentication (cookies and optional headers)

  • load_config

    Load API testing configuration from a JSON file

  • set_environment

    Switch to a different environment from the loaded configuration

  • batch_test

    Execute multiple API tests in batch with parallel or sequential execution

  • analyze_api_spec

    Analyze OpenAPI/Swagger specification and extract endpoint information

  • generate_test_scenarios

    Generate comprehensive test scenarios from OpenAPI/Swagger specification

  • discover_mcp_server

    Discover and analyze an MCP server to find available tools and resources

  • test_mcp_endpoint

    Test a specific MCP endpoint method with parameters

  • generate_mcp_tests

    Generate comprehensive test scenarios for an MCP server

API Lab MCPのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度API Lab MCPに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 お使いのデバイス上でMCPをローカル実行することも、リモートMCPサーバーのURLに接続することもできます。

方法1:ローカルコネクタを使用

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

API Lab MCPをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. API Lab MCPのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "atototo-api-lab-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "api-lab-mcp"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてAPI Lab MCPのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. API Lab MCPのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
API Lab MCPを使ってこのタスクを手伝ってもらえますか?
API Lab MCP
はい、読みました。
API Lab MCPで調べた結果をお伝えします。

方法2:MCPサーバーのURLを追加

API Lab MCPがすでにリモートでホストされている場合や、チームの複数のユーザーで1つのコネクタを共有したい場合は、この方法を使います。

1

MCPコネクタを開く

TypingMindで「プラグイン」に移動し、「MCPコネクタ」を開いて「URLを追加」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 「プラグイン」に移動してください。
  3. 「MCPコネクタ」を開いてください。
  4. 「URLを追加」をクリックします。
TypingMindの「カスタムMCPサーバーURLを追加」フォーム
2

サーバーURLを貼り付け

「サーバーURL」欄にお使いのサーバーURLを入力してください。サーバーで必要とされる場合は、接続名、説明、アイコン、カスタムHTTPヘッダー、OAuthクライアント設定を追加してください。

  1. 「サーバーURL」欄にお使いのサーバーURLを貼り付けてください。
  2. API Lab MCPの接続名を入力してください。
  3. 接続を識別しやすくするには、説明とアイコンを追加してください。
  4. サーバーで認証が必要な場合は、カスタムHTTPヘッダーまたはOAuthクライアントの詳細情報を追加してください。
3

接続を作成

「接続を作成」をクリックし、プラグイン一覧に戻って、新しいMCP接続が有効になっていることを確認してください。

  1. 「接続を作成」をクリックします。
  2. MCPコネクタの一覧に戻ってください。
  3. API Lab MCPの接続が「有効」と表示されていることを確認してください。
  4. 接続がすぐに表示されない場合は、プラグイン一覧を更新してください。
4

再接続せずにモデルを切り替え

お好みのモデルでチャットを開始し、「プラグイン」でAPI Lab MCPのツールを有効にしてください。必要に応じて別のモデルに切り替えられます。MCP接続は、TypingMindのワークスペースで引き続き利用できます。

  1. TypingMindで新しいチャットを開始してください。
  2. 使用するAIモデルを選択してください。
  3. 「プラグイン」でAPI Lab MCPのツールを有効にしてください。
  4. 必要に応じて、ツールを使うようモデルに依頼してください。
  5. 別のAIモデルに切り替えて、同じMCP接続を再利用してください。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
API Lab MCPを使ってこのタスクを手伝ってもらえますか?
API Lab MCP
はい、読みました。
API Lab MCPで調べた結果をお伝えします。

よくある質問

API Lab MCP MCPサーバーは何に使いますか?

API Lab MCPは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでAPI Lab MCP MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでAPI Lab MCPを利用できます。

TypingMindでAPI Lab MCP MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。API Lab MCPを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

API Lab MCP MCPをTypingMindに接続するにはどうすればよいですか?

API Lab MCPは、ローカルMCPコネクタを使うか、リモートMCPサーバーのURLを追加することでTypingMindに接続できます。サーバーがデバイス上のファイル、アプリ、プライベートリソースにアクセスする必要がある場合はローカルコネクタを、MCPサーバーがリモートでホストされている場合はサーバーURLを使用してください。

TypingMindでAPI Lab MCP MCPのどのようなツールを利用できますか?

API Lab MCPは14個のMCPツールを提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

API Lab MCP MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。API Lab MCPで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

MCP Protocol Testing Guide

Comprehensive guide for testing MCP protocol endpoints

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇