API Tester MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@API Tester MCP Server Send a GET request to https://api.github.com/users/octocat and show me the status and response time"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
API Tester MCP Server
Un servidor MCP (Model Context Protocol) para realizar pruebas de APIs de forma sencilla y eficiente. Este servidor proporciona herramientas para realizar peticiones HTTP (GET, POST, PUT, DELETE) y obtener respuestas formateadas en JSON.
🚀 Características
5 herramientas HTTP: GET, POST, PUT, DELETE y una herramienta genérica para cualquier método HTTP
Respuestas formateadas: Todas las respuestas se devuelven en formato JSON estructurado
Medición de tiempo: Incluye tiempo de respuesta en milisegundos
Manejo de errores: Captura y formatea errores de red y HTTP de forma clara
Headers personalizados: Soporte para headers HTTP personalizados
Parámetros de consulta: Soporte para query parameters
Timeout configurable: 30 segundos de timeout por defecto
Redirecciones: Manejo automático de hasta 5 redirecciones
Related MCP server: API Request MCP Server
📋 Requisitos
Node.js 18+
npm o yarn
🛠️ Instalación
Clona el repositorio:
git clone https://github.com/tu-usuario/api-tester-mcp.git
cd api-tester-mcpInstala las dependencias:
npm installPrueba el servidor:
npm test⚙️ Configuración
Configuración en Claude Desktop
Para usar este servidor MCP con Claude Desktop, agrega la siguiente configuración a tu archivo claude_desktop_config.json:
{
"mcpServers": {
"api-tester": {
"command": "node",
"args": ["path/to/api-tester-mcp/index.js"],
"env": {}
}
}
}Ubicación del archivo de configuración:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Configuración manual
También puedes ejecutar el servidor directamente:
node index.jsEl servidor se ejecuta en modo stdio y está listo para recibir comandos MCP.
🔧 Herramientas Disponibles
1. api_get
Realiza una petición GET a una URL especificada.
Parámetros:
url(string, requerido): URL de destinoheaders(object, opcional): Headers HTTP como pares clave-valorparams(object, opcional): Parámetros de consulta como pares clave-valor
2. api_post
Realiza una petición POST con datos opcionales.
Parámetros:
url(string, requerido): URL de destinodata(any, opcional): Datos a enviar en el cuerpo de la peticiónheaders(object, opcional): Headers HTTP como pares clave-valorparams(object, opcional): Parámetros de consulta como pares clave-valor
3. api_put
Realiza una petición PUT con datos opcionales.
Parámetros:
url(string, requerido): URL de destinodata(any, opcional): Datos a enviar en el cuerpo de la peticiónheaders(object, opcional): Headers HTTP como pares clave-valorparams(object, opcional): Parámetros de consulta como pares clave-valor
4. api_delete
Realiza una petición DELETE.
Parámetros:
url(string, requerido): URL de destinoheaders(object, opcional): Headers HTTP como pares clave-valorparams(object, opcional): Parámetros de consulta como pares clave-valor
5. api_request
Herramienta genérica para realizar cualquier tipo de petición HTTP.
Parámetros:
method(string, requerido): Método HTTP (GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS)url(string, requerido): URL de destinodata(any, opcional): Datos a enviar (para POST, PUT, PATCH)headers(object, opcional): Headers HTTP como pares clave-valorparams(object, opcional): Parámetros de consulta como pares clave-valor
📖 Ejemplos de Uso
Ejemplo 1: GET simple
{
"tool": "api_get",
"arguments": {
"url": "https://jsonplaceholder.typicode.com/posts/1"
}
}Respuesta:
{
"success": true,
"method": "GET",
"url": "https://jsonplaceholder.typicode.com/posts/1",
"status": 200,
"statusText": "OK",
"headers": {...},
"data": {
"userId": 1,
"id": 1,
"title": "sunt aut facere repellat provident occaecati excepturi optio reprehenderit",
"body": "quia et suscipit..."
},
"responseTime": 245
}Ejemplo 2: POST con datos JSON
{
"tool": "api_post",
"arguments": {
"url": "https://jsonplaceholder.typicode.com/posts",
"data": {
"title": "Mi nuevo post",
"body": "Contenido del post",
"userId": 1
},
"headers": {
"Content-Type": "application/json"
}
}
}Ejemplo 3: GET con headers y parámetros
{
"tool": "api_get",
"arguments": {
"url": "https://api.ejemplo.com/datos",
"headers": {
"Authorization": "Bearer tu-token-aqui",
"Accept": "application/json"
},
"params": {
"page": "1",
"limit": "10",
"filter": "activo"
}
}
}Ejemplo 4: Petición genérica PATCH
{
"tool": "api_request",
"arguments": {
"method": "PATCH",
"url": "https://api.ejemplo.com/usuarios/123",
"data": {
"nombre": "Nuevo nombre"
},
"headers": {
"Content-Type": "application/json",
"Authorization": "Bearer tu-token"
}
}
}📊 Formato de Respuesta
Respuesta Exitosa
{
"success": true,
"method": "GET",
"url": "https://ejemplo.com/api",
"status": 200,
"statusText": "OK",
"headers": {
"content-type": "application/json",
"content-length": "1234"
},
"data": {...},
"responseTime": 156,
"requestData": {...}
}Respuesta de Error
{
"success": false,
"method": "POST",
"url": "https://ejemplo.com/api",
"error": "Request failed with status code 404",
"code": "ERR_BAD_REQUEST",
"status": 404,
"statusText": "Not Found",
"headers": {...},
"data": {...},
"requestData": {...}
}🔍 Casos de Uso
Desarrollo de APIs: Prueba rápida de endpoints durante el desarrollo
Debugging: Verificación de respuestas y headers de APIs
Integración: Pruebas de integración con servicios externos
Monitoreo: Verificación del estado de APIs en producción
Documentación: Generación de ejemplos de uso para documentación
🛡️ Características de Seguridad
Timeout: Previene peticiones que cuelguen indefinidamente
Límite de redirecciones: Evita bucles infinitos de redirección
Manejo de errores: Captura y formatea errores de forma segura
Sin almacenamiento: No guarda datos sensibles en memoria
🤝 Contribuir
Fork el proyecto
Crea una rama para tu feature (
git checkout -b feature/AmazingFeature)Commit tus cambios (
git commit -m 'Add some AmazingFeature')Push a la rama (
git push origin feature/AmazingFeature)Abre un Pull Request
📝 Licencia
Este proyecto está bajo la Licencia MIT. Ver el archivo LICENSE para más detalles.
🐛 Reportar Problemas
Si encuentras algún problema o tienes sugerencias, por favor:
Revisa los issues existentes
Si no existe, crea un nuevo issue
Incluye información detallada sobre el problema
Proporciona ejemplos de reproducción si es posible
📞 Soporte
Documentación: Este README
Issues: GitHub Issues
Discusiones: GitHub Discussions
🔄 Changelog
v1.0.0
✨ Implementación inicial del servidor MCP
🔧 5 herramientas HTTP (GET, POST, PUT, DELETE, genérica)
📊 Respuestas formateadas en JSON
⏱️ Medición de tiempo de respuesta
🛡️ Manejo robusto de errores
📖 Documentación completa
¿Te gusta este proyecto? ⭐ ¡Dale una estrella en GitHub!
Available Tools
5 toolsapi_deleteB
Make a DELETE request to a specified URL with optional headers and query parameters
Inputs: url (required), format, params, headers.
api_getB
Make a GET request to a specified URL with optional headers and query parameters
Inputs: url (required), format, params, headers.
api_postC
Make a POST request to a specified URL with optional data, headers and query parameters
Inputs: url (required), data, format, params, +1 more.
api_putC
Make a PUT request to a specified URL with optional data, headers and query parameters
Inputs: url (required), data, format, params, +1 more.
api_requestB
Make a generic HTTP request with specified method, URL, and optional data, headers and query parameters
Inputs: url (required), method (required), data, format, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
The four method-specific tools are clearly distinct by HTTP verb, but api_request overlaps with all of them and could tempt an agent to bypass the specific tools. The descriptions make the generic tool's purpose clear enough, though the boundary is inherently fuzzy.
All tool names follow a consistent snake_case api_<verb>/api_request pattern. The convention is predictable and easy to scan.
Five tools are well-scoped for an API tester server, with one tool per common HTTP method plus a generic fallback. Each tool earns its place without excess.
GET, POST, PUT, DELETE and a generic request tool cover the core API-testing lifecycle. PATCH and HEAD are not dedicated tools, but api_request provides a workable escape hatch, so the gap is minor.
Maintenance
Related MCP Connectors
Send one HTTP request, or one per row of a dataset, CSV or Google Sheet, and get the response back
Let agents make HTTP requests later: schedule, retry, cron, watch jobs, receive webhooks.
Send many HTTP/API requests with retries and rate limits; get status, headers and JSON back.
AI-callable tools for API mocking, testing, monitoring, security, and automation.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables fetching content from any URL with support for different HTTP methods, custom headers, and request bodies. Designed to work with ChatGPT and other AI assistants for web scraping and API interactions.-
- AlicenseBqualityDmaintenanceEnables automatic HTTP requests (GET, POST, PUT, DELETE, etc.) with JSON validation and proxy support. Supports custom headers, request bodies, and environment variable configuration for seamless API integration.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables sending HTTP requests to webhooks with dynamic parameters, supporting all HTTP methods (GET, POST, PUT, PATCH, DELETE), custom headers, and configurable timeouts with detailed error handling and validation.MIT
- AlicenseAqualityDmaintenanceEnables AI agents to send HTTP requests to any endpoint with full control over methods, headers, query parameters, and request bodies.1MIT