loading…
Search for a command to run...
loading…
A Bun-based MCP server providing a persistent HTTP request toolset for testing and inspecting JSON APIs. It supports session-aware operations, including cookie
A Bun-based MCP server providing a persistent HTTP request toolset for testing and inspecting JSON APIs. It supports session-aware operations, including cookie persistence, automatic bearer token reuse, and configurable base URLs.
req-mcp-server is a Bun-based MCP server that provides a persistent HTTP request toolset for testing and inspecting APIs.
It exposes a small set of MCP tools for setting a base URL, sending requests, reusing bearer auth across calls, and resetting request session state.
The server registers four MCP tools:
new_request_session — clears cookies and stored authget_request_base — returns the current API base URLset_request_base — sets the API base URL used for later callssend_request — sends an HTTP request through the active sessionsend_request is the main operational tool. The other three manage session state.
/mcp/health9797MCP_PORTEach MCP session gets its own request client. Cookies are preserved across requests in that session, and bearer auth is reused when a successful response body includes an access_token field.
bun install
bun run src/mcp.ts
Once started, the server is available at:
http://localhost:9797/healthhttp://localhost:9797/mcpIf you want a different port:
MCP_PORT=8080 bun run src/mcp.ts
Build and run with Docker Compose:
docker compose up --build
The container exposes port 9797 and starts the same MCP server entrypoint.
send_request accepts:
endpoint — request path such as /api/auth/memethod — HTTP method such as GET or POSTuseStoredAuth — whether to attach the stored bearer tokenheaders — optional string-to-string headersbody — optional JSON object bodyCurrent behavior is designed for standard JSON API traffic. Multipart uploads, binary payloads, and non-object request bodies are not the primary target of this server.
src/
mcp.ts MCP server and HTTP transport
xrest.ts session-aware request client
utils.ts small string utility helpers
skills/
request-api-tool/ companion skill guidance for using the MCP tools
impittough-cookiecurl http://localhost:9797/health
Expected response:
{"status":"ok"}
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"req-mcp-server": {
"command": "npx",
"args": []
}
}
}