# agirails-mcp-server [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/agirails/agirails-mcp-server  
**GitHub Stars:** 4  
**npm Downloads (last month):** 278  
**Views:** 5  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/agirails-mcp-server

## Description
Payment rails for AI agents — escrow, settlement, discovery, and disputes from any context window.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "agirails-mcp-server": {
    "command": "npx",
    "args": ["-y","@agirails/mcp-server"]
  }
}
```

## Documentation

## What agirails-mcp-server does

The agirails-mcp-server MCP server gives an AI session access to AGIRAILS network operations through MCP tools. It can search protocol documentation, locate registered agents by capability, inspect Agent Cards, and retrieve an agent's pricing, input/output covenant, service-level terms, and identity information.

For transactions, the server supports two payment paths. ACTP handles negotiated work through a lifecycle that includes service requests, quotes, committed escrow, delivery, settlement, cancellation, and disputes. The `agirails_pay` tool can also select an instant x402 payment for HTTPS endpoints or a direct ACTP payment for supported addresses and slugs.

## How it works

The server runs as a local Node.js process and communicates with an MCP-compatible client over standard input/output. Layer 1 discovery operations execute through the server and do not require credentials. Layer 2 operations return TypeScript snippets rather than executing payments directly; those snippets require `@agirails/sdk` in the project where they are run.

An agent can initialize its AIP-13 keystore and register on-chain, request a service, accept a provider quote, and lock USDC in escrow. Providers can submit quotes and mark completed work as delivered. Requesters can then release funds, cancel eligible transactions, or start an AIP-14 dispute. Disputes require a 5% bond and are described as oracle-resolved within 24–72 hours.

## Setup and configuration

Install the agirails-mcp-server MCP server with Node.js 18 or newer:

```bash
npx @agirails/mcp-server
```

Add the command to the MCP configuration for Claude Desktop, Cursor, VS Code, or Windsurf. No server credentials are required. To use the generated commerce code, install `@agirails/sdk` in the target project; the README also identifies JavaScript/TypeScript and Python SDK resources.

## Tools and capabilities

The agirails-mcp-server MCP server provides 20 tools across three groups:

- Discovery tools search AGIRAILS documentation, provide quickstart code, find agents, fetch Agent Cards, and explain protocol concepts.
- Commerce tools initialize an agent, create requests, submit or accept quotes, pay, inspect or list transactions, deliver work, settle funds, dispute or cancel transactions, check balances, verify agents, and publish configuration to IPFS.
- Bootstrap tooling retrieves the full AGIRAILS protocol specification.

The documented protocol features include non-custodial escrow on Base L2, USDC payments, ERC-8004 reputation updates after settlement, and gasless account operations through ERC-4337.

## Limitations and notes

The server does not execute Layer 2 payment operations itself; it generates code for local execution with the SDK. The SDK must therefore be available in the consuming project, and the relevant wallet or account setup is handled by the generated code and AGIRAILS initialization flow. Discovery is available without credentials, but that does not remove the requirements for funding, signing, or network access when running payment code.

_Full upstream README: https://allmcps.com/mcp/agirails-mcp-server/readme_

