# GrantAi Memory [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/solonai-com/grantai  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/grantai-memory

## Description
Persistent memory for AI agents. Infinite context with sub-millisecond recall.

## Tools
Capabilities this server exposes over MCP:

- **grantai_infer** — Query memory for relevant context
- **grantai_teach** — Store content for future recall
- **grantai_learn** — Import files or directories
- **grantai_health** — Check server status
- **grantai_summarize** — Store session summaries
- **grantai_project** — Track project state
- **grantai_snippet** — Store code patterns
- **grantai_git** — Import git commit history
- **grantai_capture** — Save conversation turns for continuity

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/solonai-com/grantai), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
curl -fsSL "https://solonai.com/grantai/install.sh?src=github" | bash
```

2. Install:

```sh
irm "https://solonai.com/grantai/install.ps1?src=github" | iex
```

## Documentation

## What GrantAi Memory MCP server does

GrantAi Memory MCP server gives AI agents a local memory layer exposed through MCP. It can retain knowledge for later retrieval, preserve session context, record project state, and organize technical material such as code patterns and Git history. The memory pool can be shared by multiple agents using the same GrantAi instance.

The project describes its retrieval model as deterministic rather than similarity-based. Stored knowledge receives a unique identifier, and retrieval returns the indexed content with attribution. This makes the server relevant when exact stored material matters more than finding semantically similar passages, such as retaining project decisions, research findings, or conversation context.

## How it works

Agents communicate with GrantAi through MCP tools. `grantai_teach` stores content, while `grantai_infer` queries memory for relevant context. Other tools provide more structured ways to add information: files and directories can be imported, session summaries can be saved, project state can be tracked, code patterns can be recorded, Git commit history can be imported, and conversation turns can be captured for continuity.

All agents connected to the same instance use the same memory pool by default. Optional speaker attribution identifies which agent contributed a stored item, and retrieval can filter results by agent with `from_agents`. This supports workflows such as handing research findings from one agent to a coding agent.

The server is designed to run locally. Docker deployments can share a named volume so multiple clients access the same data.

## Setup and configuration

The free edition can be installed on macOS, Linux, or Windows using the documented shell or PowerShell installer. Homebrew installation is also available through the `solonai/grantai/grantai-free` tap. The installer places files under `~/.grantai/free` on macOS and Linux, or `%LOCALAPPDATA%\\GrantAi\\free` on Windows, and registers the server with supported clients found on the machine.

Docker is available on all listed platforms. The documented image is `ghcr.io/solonai-com/grantai-memory:1.8.6`. A Claude Desktop configuration runs the container interactively and mounts the `grantai-data` volume at `/data`; using the same volume lets multiple agents share memory.

No account, email address, or license key is required for the free edition. The provided setup instructions do not specify environment variables.

## Tools and capabilities

- `grantai_infer`: Query memory for relevant context.
- `grantai_teach`: Store content for future recall.
- `grantai_learn`: Import files or directories.
- `grantai_health`: Check server status.
- `grantai_summarize`: Store session summaries.
- `grantai_project`: Track project state.
- `grantai_snippet`: Store code patterns.
- `grantai_git`: Import Git commit history.
- `grantai_capture`: Save conversation turns for continuity.

GrantAi Memory MCP server works with MCP-compatible clients and is documented for Claude Code, Claude Desktop, Cursor, Gemini CLI, and Codex.

## Limitations and notes

The free edition requires a one-time model download of about 650 MB. Native installation support is listed for macOS on Apple Silicon, Linux x64, and Windows; Docker is listed for all platforms. Instead, it directs users to separate pricing and terms information.

The documented retrieval behavior is based on content stored in GrantAi. It does not claim to connect to external knowledge bases or synchronize memory between separate instances automatically. For multi-agent sharing, clients need to point to the same GrantAi instance or shared Docker volume.

_Full upstream README: https://allmcps.com/mcp/grantai-memory/readme_

