Skip to main content
Glama
vAPI-Network

@vapi-network/mcp

Official
by vAPI-Network

vAPI Network

One wallet, every x402 API. vAPI Network is an open-source, non-custodial TypeScript toolkit for discovering and paying x402 services from a CLI, MCP client, or your own code. Call works today. Tasks and Compute are next.

Your key stays encrypted on your machine. vAPI Network applies spend policy before signing, sends payment directly to the service, and writes receipts to a local append-only ledger. It does not hold funds, proxy payments, or send telemetry off the machine by default.

60-second quickstart

Node.js 22 or newer is required.

npx vapi-network init

The command creates an encrypted wallet and configuration under ~/.vapi/ (or $VAPI_HOME) and prints its address. Fund that address with USDC on Base, then discover and call a service:

npx vapi-network search "weather"
npx vapi-network pay <listing-ref> --max 0.02

After a global install you can use the shorter vapi binary for the same commands. See balances and the local receipt trail with:

vapi balance
vapi receipts

Add the single MCP server to Claude Desktop, Claude Code, Cursor, or another stdio MCP client:

{
  "mcpServers": {
    "vapi": {
      "command": "npx",
      "args": ["-y", "vapi-network", "mcp"]
    }
  }
}

The server exposes product-namespaced tools such as call.search, call.inspect, call.pay, wallet.address, wallet.balance, and receipts.list. The old unnamespaced Call tools remain as deprecated aliases for one transition release.

Related MCP server: gatefareio/mcp-server

Discovery sources

Discovery is a plugin interface. The client can merge listings from multiple sources, de-duplicate them by resource URL, and retain each listing's provenance:

  • vAPI Registry is enabled by the default distribution, using https://console.vapinetwork.ai/api/marketplace/discovery for discovery and https://console.vapinetwork.ai/api/network/services for service details.

  • Coinbase Bazaar reads the public x402 v2 /discovery/resources catalog exposed by a facilitator.

  • Local file reads a JSON array of listings for private or development catalogs.

  • x402scan is a deliberate stub for now. The source research documents its discovery convention, but not a stable public read API that this client can safely target.

Use @vapi-network/sources to compose only the catalogs you trust. Network access is guarded against local and private destinations before a request is made.

Packages

Package

Purpose

@vapi-network/core

x402 protocol, wallet, spend policy, discovery merge, and receipts

@vapi-network/sources

vAPI Registry, Coinbase Bazaar, local-file, and x402scan source adapters

@vapi-network/mcp

stdio MCP server with namespaced payment tools

@vapi-network/cli

init, discovery, payment, wallet, receipt, and MCP commands

vapi-network

zero-dependency distribution with the vapi binary and defaults

Every npm tarball is bundled and has zero runtime dependencies. The scoped packages are useful for embedding; most users should start with vapi-network.

SDK

The core and source packages can be used without the CLI or MCP layer. See the runnable SDK example for discovery, policy validation, local signing, and direct x402 payment construction.

Run it after initialization with pnpm example:pay -- weather.

Local state and migration

By default, local state lives in ~/.vapi/:

config.json
keystore.json
receipts.jsonl
spend-ledger.json

Set VAPI_HOME to use a different directory. On first use of the default home, the client copies an existing ~/.vapi/agent-cash/ configuration into ~/.vapi/ when it can do so without overwriting files, prints a migration notice, and leaves the old directory untouched.

Roadmap

  • A local gateway daemon (vapi serve) with per-key budgets

  • OpenTelemetry traces and metrics, with exporters enabled only by the user

  • task.* tools for posting, funding, delivering, and reviewing work

  • compute.* tools for discovering models and paying for inference

Until the gateway lands, vapi serve and the provider-side vapi publish command exit with a preview message. Payments remain direct from the local wallet to each service.

Development

This is a pnpm workspace for Node.js 22 and pnpm 10.

pnpm install
pnpm lint
pnpm typecheck
pnpm test
pnpm build
pnpm pack:check

See CONTRIBUTING.md for the development workflow and SECURITY.md for private vulnerability reports.

CLI commands exit 0 on success, 1 on an operational failure, and 2 for invalid usage or an announced preview-only command. --json sends both success values and errors to stdout as one JSON value; mcp --json is accepted as a no-op because the stdio transport is already JSON-RPC.

Publishing

All five packages share one version and are published together. npm reads a package manifest before lifecycle hooks run, so the release is made from the generated publish/ directories, never from the workspace package roots.

First update every package to the same version, keep publishConfig.tag = "next", and verify the exact tarballs:

pnpm install --frozen-lockfile
pnpm pack:check

After reviewing the output, a maintainer with npm access runs these commands manually:

npm login
pnpm --dir packages/core publish:npm
pnpm --dir packages/sources publish:npm
pnpm --dir packages/mcp publish:npm
pnpm --dir packages/cli publish:npm
pnpm --dir packages/vapi-network publish:npm

Each package's publish:npm script publishes its staged ./publish directory with npm publish ./publish --access public --tag next. The manual release workflow verifies and prints these commands; it never receives npm credentials or publishes automatically.

License

Apache-2.0. See LICENSE.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    F
    maintenance
    MCP server for the402.ai — an open marketplace where AI agents discover and purchase services from third-party providers via x402 micropayments (USDC on Base). Browse the catalog, purchase services, manage conversation threads, and list services as a provider.
    30
    56
    2
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Marketplace MCP for paid HTTP APIs. Pay per call in USDC on Base via the open x402 standard — non-custodial. 13 tools for discovery, buying, and publishing APIs.
    36
    2
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables MCP-compatible agents to discover and call x402 paid services from a directory of over 2,000 APIs.
    Apache 2.0
  • A
    license
    Not graded
    quality
    F
    maintenance
    MCP server for the x402 protocol that lets AI agents discover and call payment-gated HTTP APIs automatically.
    428
    Apache 2.0