# AGT agent names

Reads owner, records and signature-verified agent manifest from the .agt registry. Works over HTTP or stdio.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 1
- Author: agtnames
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/agtnames/agt/tree/HEAD/packages/mcp
- Updated: 2026-10-02
- HTML: https://affpapa.org/en/nevibecode/mcp/agt-agent-names

## What it does

The server returns the owner of an agent name, its on-chain records (Polygon mainnet), and a manifest with verified signature: endpoints, keys, payment data. Five tools — `agt_resolve`, `agt_manifest`, `agt_endpoint`, `agt_available`, `agt_namehash`. Read-only. When the manifest signature does not match the registry owner, status becomes `unverified` and data comes back inside an `untrusted` envelope.

An HTTP endpoint at `https://agtnames.com/api/mcp` needs no installation. The stdio variant via `npx -y @agtnames/mcp` works in Cursor, Copilot, Windsurf, Cline, Zed. Optional variables `AGT_RPC_URL`, `AGT_TIMEOUT_MS`, `AGT_IPFS_GATEWAY` go in `env`.

Nine write tools unlock with `AGT_SESSION_PASSPHRASE`: create a session key, import a signed grant from the name owner, write a text record, address, endpoint, manifest URI or wallet. The grant is bounded by name list, setters, expiry and call count; the owner can revoke it in one transaction. Without the variable the server stays read-only.

## Requirements
- Needs: Node.js (commands run via npx)
- Remote server: `https://agtnames.com/api/mcp`
- Environment variables: `AGT_CHAIN`, `AGT_RPC_URL`, `AGT_REGISTRY`, `AGT_IPFS_GATEWAY`, `AGT_TIMEOUT_MS`, `AGT_RATE_PER_MIN`, `AGT_SESSION_PASSPHRASE`, `AGT_SESSION_DIR` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

1. **Platform CLI: remote server**
```bash
claude mcp add --transport http agt https://agtnames.com/api/mcp
```

2. **Platform CLI**
```bash
claude mcp add --env AGT_CHAIN=<AGT_CHAIN> --env AGT_RPC_URL=<AGT_RPC_URL> --env AGT_REGISTRY=<AGT_REGISTRY> --env AGT_IPFS_GATEWAY=<AGT_IPFS_GATEWAY> --env AGT_TIMEOUT_MS=<AGT_TIMEOUT_MS> --transport stdio mcp -- npx -y @agtnames/mcp
```
Replace <…> with your own values. 3 more environment variables are in the server README

### Codex

1. **Platform CLI: remote server**
```bash
codex mcp add mcp --url https://agtnames.com/api/mcp
```

2. **Platform CLI**
```bash
codex mcp add mcp --env AGT_CHAIN=<AGT_CHAIN> --env AGT_RPC_URL=<AGT_RPC_URL> --env AGT_REGISTRY=<AGT_REGISTRY> --env AGT_IPFS_GATEWAY=<AGT_IPFS_GATEWAY> --env AGT_TIMEOUT_MS=<AGT_TIMEOUT_MS> -- npx -y @agtnames/mcp
```
Replace <…> with your own values. 3 more environment variables are in the server README

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp": {
            "url": "https://agtnames.com/api/mcp"
        }
    }
}
```
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@agtnames/mcp"
            ],
            "env": {
                "AGT_CHAIN": "<AGT_CHAIN>",
                "AGT_RPC_URL": "<AGT_RPC_URL>",
                "AGT_REGISTRY": "<AGT_REGISTRY>",
                "AGT_IPFS_GATEWAY": "<AGT_IPFS_GATEWAY>",
                "AGT_TIMEOUT_MS": "<AGT_TIMEOUT_MS>"
            }
        }
    }
}
```
Replace <…> with your own values. 3 more environment variables are in the server README

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp": {
            "type": "http",
            "url": "https://agtnames.com/api/mcp"
        }
    }
}
```
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@agtnames/mcp"
            ],
            "env": {
                "AGT_CHAIN": "<AGT_CHAIN>",
                "AGT_RPC_URL": "<AGT_RPC_URL>",
                "AGT_REGISTRY": "<AGT_REGISTRY>",
                "AGT_IPFS_GATEWAY": "<AGT_IPFS_GATEWAY>",
                "AGT_TIMEOUT_MS": "<AGT_TIMEOUT_MS>"
            }
        }
    }
}
```
Replace <…> with your own values. 3 more environment variables are in the server README

### Gemini CLI

1. **Platform CLI: remote server**
```bash
gemini mcp add -t http mcp https://agtnames.com/api/mcp
```

2. **Platform CLI**
```bash
gemini mcp add -e AGT_CHAIN=<AGT_CHAIN> -e AGT_RPC_URL=<AGT_RPC_URL> -e AGT_REGISTRY=<AGT_REGISTRY> -e AGT_IPFS_GATEWAY=<AGT_IPFS_GATEWAY> -e AGT_TIMEOUT_MS=<AGT_TIMEOUT_MS> mcp npx -y @agtnames/mcp
```
Replace <…> with your own values. 3 more environment variables are in the server README

## When to use it
- check the owner and expiry of a .agt agent name from the registry
- fetch a signed agent manifest with endpoints and keys
- see whether a name is available for registration
- write a new endpoint or wallet address for an agent via countersign grant
- read the pricing policy of an agent from its verified manifest

## Example prompts
- Look up the owner and records for `alice.agt`
- Check if the name `bot-123.agt` is available for registration
- Get the MCP endpoint and pricing for agent `support.agt`

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 392262
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33989
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81163
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119231
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47577
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43902

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
