# AgentCache

> AgentCache is a paid MCP server for ai models and llm tooling. Semantic answer cache for agents: reuse answers to reworded questions at $0.002 per hit. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** API
- **Website:** https://myuiaf.com/agentcache
- **MCP Registry name:** com.myuiaf/agentcache
- **Categories:** AI models and LLM tooling, developer tools
- **Listing updated:** 2026-11-16

## About

Before an agent calls a model, it asks AgentCache whether a similar question was already answered. Questions are compared by meaning using the bge-m3 embedding model running in Cloudflare, so "How do I reset my password?" and "I forgot my password" can match. An answer is reused only when similarity is at least 95% and every number in the question (order IDs, dates, amounts) matches exactly, so order 12345 never gets the answer for 12346.

The flow is a lookup call, then on a miss a store call after the agent gets its answer from the model. Hits cost $0.002 from a prepaid wallet; misses, saves and deletes are free, and a retried lookup with the same Idempotency-Key is not charged twice. If the cache is unavailable, the lookup returns a miss at no charge.

Each answer is scoped to one agent, namespace and optional context. Retention defaults to 24 hours and can be set from one minute to 30 days. The site advises against caching personal data or answers that depend on who asks.

## Features

- **Meaning-based matching:** Reworded questions can hit the same saved answer.
- **Number-strict:** Differing IDs, dates or amounts always count as different questions.
- **Private namespaces:** Answers never cross agents or namespaces.
- **Configurable retention:** Keep answers from 1 minute to 30 days, default 24 hours.
- **Pay per hit:** Misses and saves are free; hits cost $0.002.
- **Fail-open:** If the cache is down, lookups return a miss without charge.

## Good for

- Cut model spend on a support bot's repeated questions
- Share answers among a team of research agents
- Speed up a coding assistant's common lookups
- Clear a namespace when a source changes

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http agentcache https://cache.myuiaf.com/mcp
```

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

```sh
https://cache.myuiaf.com/mcp
```

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

```json
{
  "mcpServers": {
    "agentcache": {
      "url": "https://cache.myuiaf.com/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "agentcache": {
      "type": "http",
      "url": "https://cache.myuiaf.com/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "agentcache": {
      "serverUrl": "https://cache.myuiaf.com/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "agentcache": {
      "type": "http",
      "url": "https://cache.myuiaf.com/mcp"
    }
  }
}
```

## FAQ

### What does a hit cost?

$0.002, from a prepaid wallet; misses and saving are free.

### How long are answers kept?

24 hours by default, or one minute to 30 days.

### Can another agent see my answers?

No, lookups search only one agent's namespace.

### What should not be cached?

Personal data and answers that depend on who is asking or change by the minute.

### Is AgentCache free?

No. AgentCache is a paid product.

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

Run this command in your terminal: claude mcp add --transport http agentcache https://cache.myuiaf.com/mcp

### What are the best alternatives to AgentCache?

The closest alternatives to AgentCache are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

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