MCP API Requester

MCP API Requester

An MCP server that enables LLMs to make arbitrary HTTP requests (GET, POST, PUT, DELETE, etc.) with custom headers, bodies, and cookies, supporting JSON and error handling.

Category
Visit Server

README

MCP API Requester

A Model Context Protocol (MCP) server that enables LLMs to make arbitrary HTTP API requests (GET, POST, PUT, DELETE, etc.) with custom headers and bodies. Works with Claude Desktop and other MCP-compatible AI tools.

Features

  • 🌐 HTTP Operations: Make any HTTP request (GET, POST, PUT, DELETE, PATCH, etc.)
  • 🔧 Custom Configuration: Full control over headers, query parameters, and request body
  • 📄 JSON Support: Native handling of JSON request and response bodies
  • 🛠 Robust Error Handling: Returns 4xx/5xx responses as structured data instead of failing, allowing the LLM to inspect errors
  • 🔒 Safe Execution: Useful for testing APIs, webhooks, and interacting with external services

Installation

Using npx (Recommended)

No installation needed! Just configure Claude Desktop to use npx:

{
  "mcpServers": {
    "api-requester": {
      "command": "npx",
      "args": [
        "-y",
        "github:yryuu/mcp-api-requester"
      ]
    }
  }
}

Local Installation

git clone <repository-url>
cd mcp-api-requester
npm install
npm run build

Configuration

Claude Desktop

Edit your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Add the server configuration:

{
  "mcpServers": {
    "api-requester": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-api-requester/dist/index.js"]
    }
  }
}

Available Tools

make_request

Make an arbitrary HTTP request.

Parameters:

  • url (string): The full URL to make the request to.
  • method (string): HTTP method (GET, POST, PUT, DELETE, PATCH, etc.). Defaults to GET.
  • headers (object, optional): Key-value pairs of HTTP headers.
  • params (object, optional): Key-value pairs of URL query parameters.
  • cookies (object, optional): Key-value pairs of cookies to be included in the request.
  • body (object/string, optional): The request body. Content-Type header should match this body.

Example (GET):

Make a GET request to https://api.example.com/users?id=123

Example (POST):

POST to https://api.example.com/data with content-type application/json and body {"key": "value"}

Example (Cookies):

Make a GET request to https://api.example.com/profile with cookies {"session": "abc", "theme": "dark"}

Development

Setup

cd mcp-api-requester
npm install

Build

npm run build

Testing

Run the included manual test script:

npm test

Note: uses tsx to run the TypeScript test file directly.

Debugging

Use the MCP Inspector to test the server:

npx @modelcontextprotocol/inspector node dist/index.js

Security

  • Warning: This tool enables the LLM to make requests to any URL you provide or it discovers.
  • Ensure you only use this in a trusted environment.
  • Be cautious when asking the LLM to interact with sensitive APIs or internal services.

License

MIT

Author

yryuu

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured