> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memcontext.in/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Overview

> Hosted MCP server that gives AI assistants persistent memory.

## What is it?

MemContext provides a hosted MCP server that gives AI assistants persistent memory through the [Model Context Protocol](https://modelcontextprotocol.io). No local installation or infrastructure required.

The server handles input validation, project name normalization, and response formatting for assistant consumption. All business logic - deduplication, classification, hybrid search - runs in the MemContext API.

MCP tools intentionally do not expose a free-form `scope` parameter. AI agents can invent isolation IDs, so app-user and tenant scopes should be controlled by your application through the REST API or TypeScript SDK. MCP remains focused on unscoped assistant memory plus optional `project` grouping.

## Connection URL

```
https://mcp.memcontext.in/mcp
```

Authenticate with your API key via the `MEMCONTEXT-API-KEY` or `X-API-Key` header. See [MCP Setup](/guides/mcp-setup) for client-specific configs.

## Tools

The server exposes five tools:

| Tool                                      | Purpose                                                |
| ----------------------------------------- | ------------------------------------------------------ |
| [`save_memory`](/mcp/save-memory)         | Persist durable knowledge across sessions              |
| [`search_memory`](/mcp/search-memory)     | Find relevant memories using hybrid search             |
| [`memory_feedback`](/mcp/memory-feedback) | Rate a retrieved memory as helpful, outdated, or wrong |
| [`update_memory`](/mcp/update-memory)     | Correct or refine an existing saved memory             |
| [`delete_memory`](/mcp/delete-memory)     | Remove a memory by ID                                  |

## Agent instructions

For best results, add the recommended agent instructions to your client's preferences file. These tell the assistant when to search, when to save, and how to use categories and projects.

The full instructions block and per-client file paths are documented in the [MCP Setup](/guides/mcp-setup#agent-instructions) guide.
