Supports secure API key management through .env files, allowing users to store sensitive credentials like OpenAI API keys without exposing them in chat.
Supports environment variable configuration on Linux systems when setting up API keys for service integrations.
Provides environment variable configuration support for macOS systems when setting up API keys for service integrations.
Provides specialized tools for testing OpenAI's GPT models and generating images with DALL-E without sharing API keys in the chat, including chat completions and image generation capabilities.
API Tester MCP Server
This is a Model Context Protocol (MCP) server that allows Claude to make API requests on your behalf. It provides tools for testing various APIs, including a dedicated integration with OpenAI's APIs.
Features
Make HTTP requests (GET, POST, PUT, DELETE) to any API
Test OpenAI's GPT models without sharing your API key in the chat
Generate images with DALL-E
Properly formatted responses for easy reading
Related MCP server: Contentful MCP Server
Setup
Prerequisites
Python 3.10 or higher
MCP SDK 1.2.0 or higher
Installation
Install the required dependencies:
Set your OpenAI API key using one of these methods:
Option 1: Environment Variables
Option 2: Using a .env File (Recommended)
Create a .env file in the project directory (copy from .env.example):
Running the Server
Using with Claude
Once your server is running, you can connect it to Claude for Desktop by configuring it in the Claude Desktop config file.
Example Prompts
General API Testing
Using OpenAI Tools
Available Tools
General API Tools
get_request: Make GET requests to any URLpost_request: Make POST requests with JSON bodiesput_request: Make PUT requests with JSON bodiesdelete_request: Make DELETE requests
OpenAI-Specific Tools
openai_chat_completion: Generate text using OpenAI's chat modelsopenai_image_generation: Generate images using DALL-E
Security Notes
Your OpenAI API key is stored in the server and not exposed in the chat
API usage will count against your OpenAI quota and may incur charges
For production use, always set the API key as an environment variable or use a
.envfileThe
.envfile is included in.gitignoreto prevent accidentally committing your API key