REST API TesterREST API Tester

Local

API Integration

Integrate this MCP server into your applications.

Get your API Key

You'll need to login and generate a Smithery API key to connect to this server.

Installation

Install the Smithery and MCP SDKs using npm:

npm install @smithery/sdk @modelcontextprotocol/sdk

TypeScript SDK

Use Smithery's TypeScript SDK to connect to this MCP server:

typescript

import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js"

const transport = new StdioClientTransport({
  "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",
    "AUTH_BEARER": "your-token",
    "AUTH_APIKEY_HEADER_NAME": "X-API-Key",
    "AUTH_APIKEY_VALUE": "your-api-key",
    "REST_ENABLE_SSL_VERIFY": "true",
    "PATH": process.env.PATH
  }
})

// Create MCP client
import { Client } from "@modelcontextprotocol/sdk/client/index.js"

const client = new Client({
	name: "Test client",
	version: "1.0.0"
})
await client.connect(transport)

// Use the server tools with your LLM application
const tools = await client.listTools()
console.log(`Available tools: ${tools.map(t => t.name).join(", ")}`)

// Example: Call a tool
// const result = await client.callTool("tool_name", { param1: "value1" })

Configuration Schema

Full JSON Schema for server configuration:

json
{
  "type": "object",
  "required": [
    "restBaseUrl"
  ],
  "properties": {
    "authBearer": {
      "type": "string",
      "description": "Bearer token for authentication."
    },
    "restBaseUrl": {
      "type": "string",
      "description": "The base URL for the REST API."
    },
    "authApikeyValue": {
      "type": "string",
      "description": "API key value for authentication."
    },
    "authBasicPassword": {
      "type": "string",
      "description": "Password for Basic Authentication."
    },
    "authBasicUsername": {
      "type": "string",
      "description": "Username for Basic Authentication."
    },
    "restEnableSslVerify": {
      "type": "string",
      "default": "true",
      "description": "Set to false to disable SSL verification for self-signed certificates."
    },
    "authApikeyHeaderName": {
      "type": "string",
      "description": "Header name for API key authentication."
    }
  }
}