Skip to main content
Glama

API Tester MCP Server

APIテスターMCPサーバー

これは、Claude がユーザーに代わって API リクエストを実行できるようにする Model Context Protocol (MCP) サーバーです。OpenAI API との専用統合を含む、さまざまな API をテストするためのツールを提供します。

特徴

  • 任意の API に HTTP リクエスト (GET、POST、PUT、DELETE) を送信します。
  • チャットでAPIキーを共有せずにOpenAIのGPTモデルをテストする
  • DALL-Eで画像を生成する
  • 読みやすいように適切にフォーマットされた回答

設定

前提条件

  • Python 3.10以上
  • MCP SDK 1.2.0以上

インストール

  1. 必要な依存関係をインストールします。
pip install "mcp[cli]" httpx python-dotenv
  1. 次のいずれかの方法で OpenAI API キーを設定します。
オプション1: 環境変数
# On Windows (PowerShell) $env:OPENAI_API_KEY = "your-api-key" # On Windows (Command Prompt) set OPENAI_API_KEY=your-api-key # On macOS/Linux export OPENAI_API_KEY="your-api-key"
オプション 2: .env ファイルの使用 (推奨)

プロジェクト ディレクトリに.envファイルを作成します ( .env.exampleからコピーします)。

OPENAI_API_KEY=your_openai_api_key_here

サーバーの実行

python main.py

クロードと一緒に使う

サーバーが稼働したら、Claude Desktop 構成ファイルで構成することで、Claude for Desktop に接続できます。

プロンプトの例

一般的なAPIテスト
Use the get_request tool to fetch data from https://jsonplaceholder.typicode.com/posts/1
Use the post_request tool to send data to https://jsonplaceholder.typicode.com/posts with this JSON body: {"title": "Test Post", "body": "This is a test", "userId": 1}
OpenAIツールの使用
Use the openai_chat_completion tool with: prompt: "Write a short poem about artificial intelligence" system_message: "You are a helpful assistant that writes creative poetry" model: "gpt-4"
Use the openai_image_generation tool with: prompt: "A futuristic city with flying cars and tall glass buildings at sunset" size: "1024x1024"

利用可能なツール

一般的なAPIツール

  • get_request : 任意の URL に GET リクエストを送信する
  • post_request : JSONボディでPOSTリクエストを行う
  • put_request : JSONボディでPUTリクエストを行う
  • delete_request : DELETEリクエストを行う

OpenAI固有のツール

  • openai_chat_completion : OpenAIのチャットモデルを使用してテキストを生成する
  • openai_image_generation : DALL-Eを使用して画像を生成する

セキュリティノート

  • OpenAI APIキーはサーバーに保存され、チャットでは公開されません
  • APIの使用はOpenAIの割り当てにカウントされ、料金が発生する場合があります
  • 本番環境での使用では、APIキーを環境変数として設定するか、 .envファイルを使用してください。
  • .envファイルは、APIキーを誤ってコミットするのを防ぐために.gitignoreに含まれています。
-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Claude がユーザーに代わって API リクエストを実行できるようにするモデル コンテキスト プロトコル サーバー。チャットで API キーを共有せずに、HTTP リクエストや OpenAI 統合などのさまざまな API をテストするためのツールを提供します。

  1. 特徴
    1. 設定
      1. 前提条件
      2. インストール
      3. サーバーの実行
    2. クロードと一緒に使う
      1. プロンプトの例
    3. 利用可能なツール
      1. 一般的なAPIツール
      2. OpenAI固有のツール
    4. セキュリティノート

      Related MCP Servers

      • -
        security
        F
        license
        -
        quality
        A Model Context Protocol server that enables Claude users to access specialized OpenAI agents (web search, file search, computer actions) and a multi-agent orchestrator through the MCP protocol.
        Last updated -
        8
        Python
        • Linux
        • Apple
      • -
        security
        A
        license
        -
        quality
        A Model Context Protocol server that enables Claude to interact directly with Contentful CMS, allowing the AI to fetch content types and entries from a Contentful space.
        Last updated -
        2
        TypeScript
        MIT License
      • A
        security
        F
        license
        A
        quality
        A Model Context Protocol (MCP) server that allows Claude AI to interact with custom tools, enabling extension of Claude's capabilities through the MCP framework.
        Last updated -
        TypeScript
        • Apple
      • -
        security
        F
        license
        -
        quality
        A Model Context Protocol server that gives Claude access to multiple AI models (Gemini, OpenAI, OpenRouter) for enhanced code analysis, problem-solving, and collaborative development through AI orchestration with conversations that continue across tasks.
        Last updated -
        5,128
        Python
        • Apple

      View all related MCP servers

      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/Vikrant-Khedkar/api-tester-mcp'

      If you have feedback or need assistance with the MCP directory API, please join our Discord server