npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@yusufstar07/request-mcp

v1.0.0

Published

MCP server: HTTP client for AI agents (Postman + curl adapter)

Downloads

60

Readme

request-mcp

Postman-like API client as MCP. Send HTTP requests via JSON (method, URL, headers, body, params) or paste a curl command. Response body is auto-formatted (JSON/HTML/text) and truncated at 500 chars.

  • http_request – method, url, headers, body, params, optional timeout. Default headers merged in.
  • curl_import – parse a curl command string and run it.
  • headers_set / headers_clear / headers_get – session default headers.

Prerequisites: Node.js 18+


Install

npm install -g @yusufstar07/request-mcp
# or: npm install @yusufstar07/request-mcp

Cursor / Claude Desktop

MCP config (use the full package name with npx):

{
  "mcpServers": {
    "request-mcp": {
      "command": "npx",
      "args": ["-y", "@yusufstar07/request-mcp"]
    }
  }
}

To run from a local build instead:

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

Run npm run build in the project first so dist/index.js exists.


Tools

| Tool | Description | |------|-------------| | http_request | method, url, headers, body, params, timeout (optional). Default headers merged in. Response body formatted and truncated. | | curl_import | Parse curl string and run the request. | | headers_set | Set/merge default headers (e.g. Authorization, Content-Type). | | headers_clear | Remove default headers. | | headers_get | Get current default headers. |


Examples

http_request (JSON)

{
  "method": "POST",
  "url": "https://api.example.com/users",
  "headers": { "Content-Type": "application/json", "Authorization": "Bearer YOUR_TOKEN" },
  "body": { "name": "John", "email": "[email protected]" }
}

With query params (URL-encoded by default):

{
  "method": "GET",
  "url": "https://api.example.com/search",
  "params": { "q": "hello", "limit": "10" }
}

curl_import (curl string)

Paste a curl command; the server parses it and runs the request:

curl -X POST https://api.example.com/login \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer xxx" \
  -d '{"username":"jane","password":"secret"}'

Another example:

curl -X GET "https://api.github.com/user" -H "Authorization: Bearer ghp_xxxx"

headers_set / headers_clear

Set default headers once; they apply to every http_request and curl_import until cleared:

  • Set: headers_set with { "Authorization": "Bearer xxx", "Content-Type": "application/json" }
  • Clear: headers_clear (no args)
  • Get: headers_get to see current defaults

Behavior

  • Params: Sent as query string; axios URL-encodes them by default.
  • Response body: Detected as JSON, HTML, or text; prettified when possible and truncated at 500 characters.
  • Timeout: Default 30s per request; override with timeout (ms) in http_request.

License

MIT