mcp-rest-api
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.
claude mcp add --transport stdio dkmaker-mcp-rest-api npx -y dkmaker-mcp-rest-api \ --env AUTH_BEARER="your-token" \ --env HEADER_Accept="application/json" \ --env REST_BASE_URL="https://api.example.com" \ --env AUTH_APIKEY_VALUE="your-api-key" \ --env AUTH_BASIC_PASSWORD="your-password" \ --env AUTH_BASIC_USERNAME="your-username" \ --env HEADER_Custom-Client="my-client" \ --env HEADER_X-API-Version="2.0" \ --env REST_ENABLE_SSL_VERIFY="true" \ --env AUTH_APIKEY_HEADER_NAME="X-API-Key" \ --env REST_RESPONSE_SIZE_LIMIT="10000"
How to use
This MCP server provides a REST API tester tool that can be invoked from Claude, Cline, or other MCP clients. It enables you to execute HTTP requests (GET, POST, PUT, DELETE, PATCH) against any REST API endpoint and receive detailed response data including status, headers, and body. The server supports multiple authentication methods (Basic, Bearer, and API Key) and allows you to set global and per-request headers, as well as control SSL verification and response size limits. To use it with Cline, configure an MCP entry named rest-api that launches the server via npx dkmaker-mcp-rest-api and pass environment variables for authentication, base URL, and header configuration. Typical usage is to call test_request with a method and endpoint, optionally including a request body and custom headers, and then inspect the returned response structure for status, headers, and body content.
How to install
Prerequisites:
- Node.js and npm installed on your system
- Internet access to fetch the MCP server package
Install globally (recommended):
npm install -g dkmaker-mcp-rest-api
Verify installation:
dkmaker-mcp-rest-api --version
Integrate with MCP client (example using npx):
npx -y dkmaker-mcp-rest-api
If you are configuring via Cline on macOS, you can also install with npx in the MCP settings as shown in the README:
{
"mcpServers": {
"rest-api": {
"command": "npx",
"args": ["-y", "dkmaker-mcp-rest-api"],
"env": {
"REST_BASE_URL": "https://api.example.com",
"AUTH_BASIC_USERNAME": "your-username",
"AUTH_BASIC_PASSWORD": "your-password",
"REST_ENABLE_SSL_VERIFY": "true"
}
}
}
}
Additional notes
Environment variables are used to configure authentication, request headers, and SSL behavior. Only configure one authentication method at a time (Basic, Bearer, or API Key). If you encounter SSL certificate issues with self-signed certificates, set REST_ENABLE_SSL_VERIFY to false. The REST_RESPONSE_SIZE_LIMIT controls how much response data is returned before truncation; adjust as needed for large payloads. When testing locally, ensure REST_BASE_URL points to the target API and that authentication credentials are kept secure. If you update settings, restart the MCP server to apply changes.
Related MCP Servers
ollama
An MCP Server for Ollama
ContextPods
Model Context Protocol management suite/factory. An MCP that can generate and manage other local MCPs in multiple languages. Uses the official SDKs for code gen.
claude-code
MCP Server connects with claude code local command.
mem0 -selfhosted
Self-hosted mem0 MCP server for Claude Code. Run a complete memory server against self-hosted Qdrant + Neo4j + Ollama while using Claude as the main LLM.
MCPretentious
A powerful Model Context Protocol (MCP) server that puppeteers iTerm2 terminals.
local-skills
Universal MCP server enabling any LLM or AI agent to utilize expert skills from your local filesystem. Reduces context consumption through lazy loading. Works with Claude, Cline, and any MCP-compatible client.