# MIRAI

> MIRAI is an open-source MCP server for agent reputation. Credit lines and repayment-based scores for ERC-8004 AI agents on Robinhood Chain. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** API, CLI, Web, Self-hosted
- **Website:** https://miraifi.family
- **Repository:** https://github.com/miraifi/mirai
- **MCP Registry name:** io.github.miraifi/mirai
- **Categories:** [agent reputation](https://ai-powered.com/categories/agent-reputation), [agent payments](https://ai-powered.com/categories/agent-payments)
- **Listing updated:** 2026-12-01

## About

MIRAI lets registered ERC-8004 agents borrow small USDG amounts on Robinhood Chain, with each line backed by a staker who risks their own USDG. Every repayment and default is recorded as a public on-chain event, which MIRAI turns into a 0 to 1000 score and a visual block city representing an agent's history.

The score counts only money that someone other than the agent put at risk and that was repaid on time. Because the inputs and weights are published through public API endpoints and an open-source scoring module, anyone can recompute an agent's record rather than trusting a rating.

The project suits agent builders who want a verifiable borrowing history, backers willing to stake behind agents, and developers who want to query agent credit data through the free API or the MCP server. The contracts are described by the team as experimental and unaudited by a third party.

## Features

- **Agent credit lines:** Registered ERC-8004 agents can open USDG borrowing lines between $5 and $500 for 1 to 30 days.
- **Backed lending:** Each line is backed by a staker whose stake absorbs defaults, keeping lender deposits protected.
- **Public MIRAI Score:** A 0 to 1000 score computed only from publicly visible repayments and defaults.
- **Block City record:** Each repayment adds a block to the agent's visual tower, giving a quick view of its history.
- **Free query API:** Endpoints return agent checks, score breakdowns, loan records and pool statistics without a key.
- **Badges for READMEs:** An SVG badge endpoint lets projects display an agent's status in their documentation.

## Good for

- Check whether an AI agent has repaid real money before transacting with it
- Build a borrowing history so an agent can qualify for future USDG credit
- Stake USDG behind an agent to earn fees on repaid loans
- Pull agent credit scores and loan records into a dashboard or analysis tool
- Show a verifiable repayment badge in an agent's project README

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http mirai https://miraifi.family/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mirai": {
      "type": "http",
      "url": "https://miraifi.family/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://miraifi.family/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mirai": {
      "url": "https://miraifi.family/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mirai": {
      "type": "http",
      "url": "https://miraifi.family/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://miraifi.family/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mirai --url https://miraifi.family/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mirai]
url = "https://miraifi.family/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mirai": {
      "httpUrl": "https://miraifi.family/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http mirai https://miraifi.family/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mirai": {
      "serverUrl": "https://miraifi.family/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mirai": {
      "url": "https://miraifi.family/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mirai": {
      "type": "streamableHttp",
      "url": "https://miraifi.family/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mirai": {
      "url": "https://miraifi.family/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mirai": {
      "url": "https://miraifi.family/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mirai": {
      "url": "https://miraifi.family/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mirai": {
      "url": "https://miraifi.family/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://miraifi.family/mcp
```

Enter a Name (for example "MIRAI"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mirai": {
      "type": "http",
      "url": "https://miraifi.family/mcp"
    }
  }
}
```

## FAQ

### What chain does MIRAI run on?

MIRAI runs on Robinhood Chain mainnet, chain id 4663, and lends USDG.

### Do I need an API key to use the data?

No. The listed read endpoints for checks, scores, records and snapshots are free and require no key.

### How is the MIRAI Score calculated?

It is a pure function of public data, using scoring code in the project repository and weights published at an API endpoint, and only counts money that others left at risk.

### What happens if an agent defaults?

A default burns the backer's stake rather than the lenders' deposits, and the default is recorded publicly.

### Is MIRAI free?

Yes. MIRAI is open source, so you can use and self-host it for free.

### How do I add MIRAI to Claude Code?

Run this command in your terminal: claude mcp add --transport http mirai https://miraifi.family/mcp

### What are the best alternatives to MIRAI?

The closest alternatives to MIRAI are SolvScore, Kojiru MCP, Agent Credit Bureau, Agentradar and AgentCrush.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [SolvScore](https://ai-powered.com/mcp/solvscore): SolvScore is a free MCP server for agent reputation.
- [Kojiru MCP](https://ai-powered.com/mcp/kojiru-mcp): Kojiru MCP is an MCP server for agent payments.
- [Agent Credit Bureau](https://ai-powered.com/mcp/agent-credit-bureau): Agent Credit Bureau is a paid MCP server for agent reputation.
- [Agentradar](https://ai-powered.com/mcp/agentradar): Agentradar is a freemium MCP server for agent reputation.
- [AgentCrush](https://ai-powered.com/mcp/agentcrush): AgentCrush is a freemium MCP server for agent reputation.
- [AgentKoin](https://ai-powered.com/mcp/agentkoin): AgentKoin is an open-source MCP server for agent payments.
- [aiagentmarket](https://ai-powered.com/mcp/aiagentmarket): aiagentmarket is an open-source MCP server for agent payments.
- [Agent Trust MCP](https://ai-powered.com/mcp/agent-trust-mcp): Agent Trust MCP is a freemium MCP server for agent reputation.

---
Source: https://ai-powered.com/mcp/mirai
