Skip to main content
Glama
vinhtran1
by vinhtran1

⚑ API Vault

Local-first API Client & Model Context Protocol (MCP) Server powered by Node.js Native SQLite.
Zero cloud limits, zero data truncation, 100% private, with a high-density developer Web Studio.

License: MIT Node.js MCP Ready Zero External Dependencies


πŸ’‘ Why API Vault?

Traditional cloud-based API clients (Postman, Hoppscotch Cloud) often hit painful ceilings:

  • Cloud Document Size Limits: E.g. Hoppscotch Cloud syncs user collections in a single Google Cloud Firestore document with a hard 1MB limit. Large OpenAPI specs, logs, or payload responses silently break sync (user/collection_creation_failed).

  • Privacy & Secret Leakage: Internal tokens, staging endpoints, and private corporate data end up on third-party cloud servers.

  • Disconnected AI Agents: When coding with Claude Desktop, Cursor, or Antigravity, AI agents cannot easily audit past requests or execute internal API queries without manual curl copying.

API Vault solves this permanently. Built entirely on Node.js 22+ native SQLite (node:sqlite) with zero external npm dependencies, API Vault stores gigabytes of full headers, input bodies, and raw responses locally on your machine, while seamlessly exposing an MCP interface to AI agents and a keyboard-friendly Web Studio for humans.


Related MCP server: RequestBin MCP Server

✨ Features

  • πŸš€ Zero Size Limits & 100% Local Storage: Every request and response is persistently stored in ~/.api-vault/api_vault.db using Node.js native SQLite. No truncation, no cloud fees.

  • πŸ€– Native MCP Server: Plug directly into Claude Desktop, Cursor, Antigravity, Cline, and any MCP client.

  • πŸ“ Mandatory AI Purpose Logging: AI agents are required to declare why an endpoint is called (description), keeping an interpretable audit trail of all automated actions.

  • πŸ–₯️ Dense Tech Web Studio:

    • Collapsible Multi-Criteria Grouping: Group past requests by Host/Domain, Date, HTTP Status, Method, or Flat view.

    • Smart Endpoint Shortening: Automatically strips verbose schemes and hostnames, applying middle truncation (.../dags/demo/dagRuns) so you can identify resources at a glance.

    • One-Click Toggle (/api & ⊟): Switch between compact paths and full URLs, or expand/collapse all groups instantly.

    • Hover Tooltips: Hover over any shortened endpoint to view the 100% complete URL.

  • 🌐 CORS-Free Execution Proxy: Call private VPN hosts, staging microservices, or local Docker services without browser CORS restrictions.

  • ⚑ Zero Dependencies: Pure Node.js standard library (node:http, node:sqlite, node:child_process). Instant startup.


πŸš€ Quickstart

1. Launch the Web Studio

Run one command to start the local proxy and launch the Web Studio in your default browser:

npx api-vault studio

Options:

# Specify custom port (default: 54193)
npx api-vault studio -p 54193

# Specify custom SQLite data directory (default: ~/.api-vault)
API_VAULT_DATA_DIR=/path/to/data npx api-vault studio

2. Run as an MCP Server

To run API Vault as an MCP Stdio Server for your AI assistants:

npx api-vault

πŸ”Œ MCP Client Configuration

Claude Desktop

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "api-vault": {
      "command": "npx",
      "args": ["-y", "api-vault"]
    }
  }
}

Cursor (mcp.json)

{
  "mcpServers": {
    "api-vault": {
      "command": "npx",
      "args": ["-y", "api-vault"]
    }
  }
}

Antigravity / Gemini CLI (mcp_config.json)

{
  "mcpServers": {
    "api-vault": {
      "command": "node",
      "args": ["/path/to/api-vault/src/server.js"],
      "env": {
        "API_VAULT_PORT": "54193"
      }
    }
  }
}

πŸ› οΈ MCP Tools Reference

Tool

Description

Key Parameters

execute_request

Execute an HTTP/REST/GraphQL request with unlimited SQLite audit logging.

method, url, description (mandatory), headers, body, auth

search_history

Search historical requests by keyword, date, method, or HTTP status.

query, date, method, status_code, limit

get_request_detail

Retrieve full untruncated headers, request body, and response body by ID.

id

get_dashboard_url

Get the live URL and status of the local Web Studio.

β€”

export_history

Export all stored requests into a clean JSON file.

file_path


πŸ—οΈ Architecture

                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                    β”‚      AI Agent / MCP Client          β”‚
                    β”‚  (Claude Desktop, Cursor, Antigravity)β”‚
                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                       β”‚ JSON-RPC (stdio)
                                       β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Developer Browser  β”‚    β”‚         API Vault Engine            β”‚
β”‚  (Dense Tech Studio) β”‚    β”‚                                     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β”‚  β€’ MCP Server (tools/call)          β”‚
           β”‚ HTTP / SSE     β”‚  β€’ CORS Proxy Bridge                β”‚
           └───────────────►│  β€’ Smart Truncation & Grouping      β”‚
                            β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                               β”‚ node:sqlite
                                               β–Ό
                                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                                    β”‚    Local SQLite DB   β”‚
                                    β”‚  (~/.api-vault/*.db) β”‚
                                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ“œ License

MIT License Β© 2026 Vinh Tran. Free and open-source for personal and commercial use.

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    Enables automatic HTTP requests (GET, POST, PUT, DELETE, etc.) with JSON validation and proxy support. Supports custom headers, request bodies, and environment variable configuration for seamless API integration.
    1
    7 npm
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Enables AI agents to send HTTP requests to any endpoint with full control over methods, headers, query parameters, and request bodies.
    1
    27 npm
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides AI coding agents with tools to query, search, and analyze persisted HTTP request logs, enabling efficient debugging without terminal noise.
    MIT