# HTTP MCP server

> Performs ad-hoc REST requests using saved collections, environment secrets, and SSRF-safe host allowlisting.

- Repository: https://github.com/Abhishekkumar2021/mcp-suite
- Page: https://hostedmcp.org/servers/abhishekkumar2021/http
- Transport: stdio
- Stars: 1
- License: MIT
- Latest version: 0.1.0

## Install

### Claude Code

```sh
claude mcp add --env 'HTTP_ALLOW_HOSTS=<HTTP_ALLOW_HOSTS>' http -- npx -y @abhishekmcp/http
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "http": {
      "command": "npx",
      "args": [
        "-y",
        "@abhishekmcp/http"
      ],
      "env": {
        "HTTP_ALLOW_HOSTS": "<HTTP_ALLOW_HOSTS>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "http": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@abhishekmcp/http"
      ],
      "env": {
        "HTTP_ALLOW_HOSTS": "<HTTP_ALLOW_HOSTS>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"http","type":"stdio","command":"npx","args":["-y","@abhishekmcp/http"],"env":{"HTTP_ALLOW_HOSTS":"<HTTP_ALLOW_HOSTS>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "http": {
      "command": "npx",
      "args": [
        "-y",
        "@abhishekmcp/http"
      ],
      "env": {
        "HTTP_ALLOW_HOSTS": "<HTTP_ALLOW_HOSTS>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add http --env 'HTTP_ALLOW_HOSTS=<HTTP_ALLOW_HOSTS>' -- npx -y @abhishekmcp/http
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.http]
command = "npx"
args = ["-y", "@abhishekmcp/http"]

[mcp_servers.http.env]
HTTP_ALLOW_HOSTS = "<HTTP_ALLOW_HOSTS>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'HTTP_ALLOW_HOSTS=<HTTP_ALLOW_HOSTS>' http npx -- -y @abhishekmcp/http
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "http": {
      "command": "npx",
      "args": [
        "-y",
        "@abhishekmcp/http"
      ],
      "env": {
        "HTTP_ALLOW_HOSTS": "<HTTP_ALLOW_HOSTS>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `HTTP_ALLOW_HOSTS` | yes | no | Comma-separated allowed hosts (exact or *.example.com). Required — the server refuses to start without it. |
| `HTTP_WRITABLE` | no | no | Set to 1 or true to allow mutating methods (POST/PUT/PATCH/DELETE). |
| `NOTES_DIR` | no | no |  |

## FAQ

### What features does the HTTP server provide?

It functions as an HTTP/REST client that supports ad-hoc requests, saved collections, environment secrets, and host allowlisting for SSRF safety.

### How can I install the HTTP server via npm?

You can install it using the command `npx -y @abhishekmcp/http`.

### Is the HTTP server secure against SSRF attacks?

Yes, the server includes host allowlisting to ensure it is SSRF-safe.
