About lunge
lunge is an MCP server that lets AI agents execute and test REST, GraphQL, WebSocket, and SSE requests. It supports one-off calls and reusable YAML or JSON collections, while reducing response size for model context.
Key features
- 01REST, GraphQL, WebSocket, and SSE requests
- 02Assertions and value extraction
- 03Reusable YAML and JSON collections
- 04Summarized, context-efficient responses
- 05Full payloads retrievable by handle
Use cases
- 01Run an API request from an AI agent
- 02Test endpoints with assertions
- 03Save and rerun request collections
MCP support
It exposes API execution and testing as MCP tools for compatible AI agents. The README describes a local stdio server.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
22Saved tool list · updated 3w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| env | string | No | Environment name for variable resolution. |
| url | string | Yes | Full URL. May contain {{variables}}. |
| auth | object | No | |
| auth.in | enum | No | header | query |
| auth.key | string | No | |
| auth.type | enum | Yes | bearer | basic | apikey |
| auth.token | string | No | |
| auth.value | string | No | |
| auth.password | string | No | |
| auth.username | string | No | |
| body | any | No | Request body (object=json, string=text). |
| query | object | No | |
| assert | array | No | e.g. [{status:200},{jsonpath:'$.x',equals:1},{timeMs:{lt:500}}]. |
| method | string | No | HTTP method (default GET). |
| extract | object | No | Capture vars: { token: '$.token' }. Use via {{token}} later. |
| headers | object | No | |
| bodyType | enum | No | Default json.json | form | text | raw |
| timeoutMs | integer | No | |
| verbosity | enum | No | summary (default, token-efficient), headers, or full. Auto-downgraded to summary when extract is set.summary | headers | full |
| followRedirects | boolean | No |
Details
From the project READMElunge
An agent-native advanced API client - execute and test REST, GraphQL, WebSocket, SSE, and (later) gRPC requests from any MCP-capable AI agent. No GUI, no manual clicking, no heavyweight desktop app. Think advanced curl, native for agents.
It is a lightweight, token-efficient alternative to Postman/Bruno for the era of AI coding agents. The agent calls tools directly; there are no humans in the loop and no bloated feature surface to pay for.
Why this exists
| Pain with Postman/Bruno | lunge approach |
|---|---|
| Require human clicking in a GUI | Agent-native: everything is an MCP tool call |
| Postman is heavy, enterprise features are paywalled | Small, open, single local binary + thin MCP layer |
| Verbose responses blow up the LLM context window | Rust core summarizes/compresses output before it reaches the agent |
| Collections are locked into proprietary formats | Plain YAML/JSON files, git-friendly |
| Separate tools per protocol | One server for REST/GraphQL/WS/SSE/gRPC |
Design pillars
- Agent-native - designed for LLM tool calls, not human UIs.
- Token-efficient - every response is filtered, truncated, and summarized. Full payloads are spilled to disk and referenced by handle so the context stays small.
- Fast & portable - a Rust core (execution + protocols + summarization) exposed to a thin TypeScript MCP layer via napi-rs.
- Both ad-hoc and reusable - agents can fire one-off requests or create, save, and re-run declarative collections stored as files.
Documents
| Doc | Contents |
|---|---|
| architecture.md | System design, the Rust/TS split, module layout, streaming strategy, FFI boundary |
| features.md | Full feature list by protocol + cross-cutting features (auth, vars, assertions, token optimizer) |
| mcp-tools.md | The MCP tool surface: names, inputs, outputs, examples |
| collection-format.md | The declarative YAML/JSON test/collection format |
| roadmap.md | Phased delivery plan from scaffolding to gRPC and CI |
Decisions locked in
- Stack: Rust core via napi-rs + TypeScript MCP layer (
@modelcontextprotocol/sdk). - Distribution: local dev tool over stdio transport (used by Cursor/Windsurf/Claude Desktop).
- Test definition: both ad-hoc agent calls and persisted declarative collections.
- MVP protocols: REST, GraphQL, WebSocket, SSE. gRPC is a later phase.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.