Pare/packages/server-http at main · MergingMonkey/Pare · GitHub
Skip to content

Latest commit

 

History

History
 
 

server-http

Folders and files

README.md

@paretools/http

npm License: MIT

Structured, token-efficient HTTP requests for AI agents. Wraps curl with typed JSON output including status, headers, body, and timing.

Part of the Pare suite of MCP servers.

Tools (4)

Tool Description
request Make an HTTP request with any method, headers, and body
get Convenience GET request (no body)
post Convenience POST request (body required)
head HEAD request returning headers only (no response body)

Quick Start

npx -y @paretools/http

Add to your MCP client config:

{
  "mcpServers": {
    "pare-http": {
      "command": "npx",
      "args": ["-y", "@paretools/http"]
    }
  }
}

Example

get output:

{
  "status": 200,
  "statusText": "OK",
  "headers": {
    "content-type": "application/json",
    "content-length": "1234"
  },
  "body": "{\"id\": 1, \"name\": \"example\"}",
  "timing": { "total": 0.125 },
  "size": 1234,
  "contentType": "application/json"
}

Security

  • Only http:// and https:// URL schemes are allowed (file://, ftp://, etc. are blocked)
  • Header values are validated against CRLF injection
  • Request body is passed via --data-raw to prevent curl @file expansion
  • Redirect hops limited to 10

Prerequisites

  • curl (pre-installed on most systems)

Compatible Clients

Works with any MCP-compatible client: Claude Code, Claude Desktop, Cursor, Windsurf, VS Code / GitHub Copilot, Cline, Roo Code, Zed, Continue.dev, Gemini CLI, OpenAI Codex

Links

License

MIT