mcp-rest-api
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
MCP REST API Tester
A TypeScript-based MCP server that enables testing of REST APIs through Cline. This tool allows you to test and interact with any REST API endpoints directly from your development environment.
Installation
Installing via Smithery
To install REST API Tester for Claude Desktop automatically via Smithery:
Installing Manually
- Install the package globally:
- Configure Cline Custom Instructions:
To ensure Cline understands how to effectively use this tool, add the following to your Cline custom instructions (Settings > Custom Instructions):
- Add the server to your MCP configuration:
While these instructions are for Cline, the server should work with any MCP implementation. Configure based on your operating system:
Windows
⚠️ IMPORTANT: Due to a known issue with Windows path resolution (issue #40), you must use the full path instead of %APPDATA%.
Add to C:\Users\<YourUsername>\AppData\Roaming\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
:
macOS
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
:
Note: Replace the environment variables with your actual values. Only configure one authentication method at a time:
- Basic Authentication (username/password)
- Bearer Token (if Basic Auth is not configured)
- API Key (if neither Basic Auth nor Bearer Token is configured)
Features
- Test REST API endpoints with different HTTP methods
- Support for GET, POST, PUT, and DELETE requests
- Detailed response information including status, headers, and body
- Custom Headers:
- Global headers via HEADER_* environment variables
- Case-insensitive prefix (HEADER_, header_, HeAdEr_)
- Case preservation for header names
- Priority-based application (per-request > auth > custom)
- Request body handling for POST/PUT methods
- Response Size Management:
- Automatic response size limiting (default: 10KB/10000 bytes)
- Configurable size limit via REST_RESPONSE_SIZE_LIMIT environment variable
- Clear truncation metadata when responses exceed limit
- Preserves response structure while only truncating body content
- SSL Certificate Verification:
- Enabled by default for secure operation
- Can be disabled for self-signed certificates or development environments
- Control via REST_ENABLE_SSL_VERIFY environment variable
- Multiple authentication methods:
- Basic Authentication (username/password)
- Bearer Token Authentication
- API Key Authentication (custom header)
Usage Examples
Once installed and configured, you can use the REST API Tester through Cline to test your API endpoints:
Development
- Clone the repository:
- Install dependencies:
- Build the project:
For development with auto-rebuild:
License
This project is licensed under the MIT License - see the LICENSE file for details.
You must be authenticated.
A TypeScript-based MCP server that enables testing of REST APIs through Cline. This tool allows you to test and interact with any REST API endpoints directly from your development environment.