Skip to main content
Glama
Vikrant-Khedkar

API Tester MCP Server

Servidor MCP del probador de API

Este es un servidor de Protocolo de Contexto de Modelo (MCP) que permite a Claude realizar solicitudes de API en su nombre. Proporciona herramientas para probar diversas API, incluyendo una integración dedicada con las API de OpenAI.

Características

  • Realizar solicitudes HTTP (GET, POST, PUT, DELETE) a cualquier API

  • Pruebe los modelos GPT de OpenAI sin compartir su clave API en el chat

  • Generar imágenes con DALL-E

  • Respuestas con formato adecuado para una fácil lectura

Related MCP server: Scenario Word

Configuración

Prerrequisitos

  • Python 3.10 o superior

  • MCP SDK 1.2.0 o superior

Instalación

  1. Instale las dependencias necesarias:

pip install "mcp[cli]" httpx python-dotenv
  1. Configure su clave API de OpenAI utilizando uno de estos métodos:

Opción 1: Variables de entorno

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

Opción 2: Usar un archivo .env (recomendado)

Cree un archivo .env en el directorio del proyecto (cópielo de .env.example ):

OPENAI_API_KEY=your_openai_api_key_here

Ejecución del servidor

python main.py

Usando con Claude

Una vez que su servidor esté en funcionamiento, puede conectarlo a Claude for Desktop configurándolo en el archivo de configuración de Claude Desktop.

Ejemplos de indicaciones

Pruebas generales de 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}

Uso de herramientas 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"

Herramientas disponibles

Herramientas generales de API

  • get_request : Realiza solicitudes GET a cualquier URL

  • post_request : Realizar solicitudes POST con cuerpos JSON

  • put_request : Realizar solicitudes PUT con cuerpos JSON

  • delete_request : Realizar solicitudes DELETE

Herramientas específicas de OpenAI

  • openai_chat_completion : Genera texto usando los modelos de chat de OpenAI

  • openai_image_generation : Genera imágenes usando DALL-E

Notas de seguridad

  • Su clave API de OpenAI se almacena en el servidor y no se expone en el chat

  • El uso de la API se descontará de su cuota de OpenAI y puede generar cargos.

  • Para uso en producción, configure siempre la clave API como una variable de entorno o utilice un archivo .env

  • El archivo .env está incluido en .gitignore para evitar confirmar accidentalmente su clave API

Related MCP Connectors

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server

  • MCP server for building and testing AI agents with multi-model experimentation and insights.

  • The Telnyx MCP server is an official implementation of the Model Context Protocol that enables AI clients (like Claude Desktop, Cursor, and OpenAI Agents) to interact with Telnyx's telephony, messaging, and AI assistant APIs. It provides comprehensive capabilities including making and managing phone calls, sending SMS/MMS messages, purchasing and configuring phone numbers, creating AI assistants with custom instructions, managing cloud storage buckets, scraping and embedding website content, and handling integration secrets. The server exists as both a local implementation and a remotely hosted version, allowing developers to integrate real-world communication infrastructure directly into AI applications.

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that runs on Cloudflare Workers with OAuth login, allowing AI assistants like Claude to execute tools remotely through HTTP connections.
    -
  • F
    license
    B
    quality
    D
    maintenance
    A Model Context Protocol server that provides tools for fetching and posting HTTP data, with built-in prompts for URL summarization and API analysis.
    2
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    A customizable Model Context Protocol server built with mcp-framework that enables Claude to access external tools and capabilities through a standardized interface.
    30 npm
    -