Cortex MCP
Cortex MCP lets outside AI tools search, read and write Cortex memory through a set of seven tools.
What it is for
Cortex is TAO's memory. This server offers that memory to any AI client that speaks MCP, such as Claude Desktop, Cursor or VS Code. The client can then look things up, save new memories and pull ready-made context into a chat.
You can see the server, try its tools and copy a client setting on the Cortex MCP server page. This page covers what the tools do.
Address
| Item | Value |
|---|---|
| Main address | /api/v1/memory/mcp/message, sent as a POST |
| Tool list | /api/v1/memory/mcp/tools, a plain GET |
| Server info | /api/v1/memory/mcp/info, a plain GET |
| Server name | apex-memory-mcp |
| Protocol version | 2024-11-05 |
The portal page shows the full address with your own web address in front. It also gives a ready-made block for Cursor and VS Code.
Signing in
This server has no sign-in of its own. It does not ask for a token the way TAO's tool server does.
Who the caller is comes from a header that TAO's gateway adds in front of the server. The memory search uses that identity and never trusts a user ID typed into the tool. A search with no identity returns no results instead of an error.
The seven tools
| Tool | What it does |
|---|---|
memory_search | Searches memories |
memory_add | Saves a new memory |
memory_get | Fetches one memory by its ID |
memory_update | Changes an existing memory |
memory_delete | Deletes a memory by its ID |
user_profile_get | Summarizes the memories held for one user |
context_inject | Returns relevant memories as a block of text ready to put in a conversation |
memory_search
| Input | Required | Meaning |
|---|---|---|
query | Yes | The search text |
top_k | No | The most results to return. Default 5 |
memory_type | No | Limit to one memory type. The list of types comes from Cortex itself |
scope | No | private, team or org |
user_id | No | Narrow to one owner, within what you may already read. It does not change who you are |
project_id | No | The project to search. Leave it out to search your own personal memories |
It returns the matching memories, the total and the query.
memory_add
| Input | Required | Meaning |
|---|---|---|
content | Yes | The text to remember |
memory_type | No | A memory type. Default episodic |
scope | No | private, team or org. Default private |
space_id | No | The memory space to file it in. Leave it out to keep it unfiled |
user_id | No | The owner. If left out, the memory is recorded as from mcp_user |
tags | No | A list of tags |
importance | No | A number from 1 to 10. Default 5 |
The memory is not saved on the spot. It is queued for Cortex to process, and the reply gives a landing ID and the status "queued".
memory_get, memory_update and memory_delete
| Tool | Inputs |
|---|---|
memory_get | memory_id (required) |
memory_update | memory_id (required), and any of content, importance and tags |
memory_delete | memory_id (required) |
memory_update saves the change and queues the memory to be processed again. A missing memory returns a "Memory not found" error. memory_get can return "Access denied" when your access does not cover that memory.
user_profile_get
| Input | Required | Meaning |
|---|---|---|
user_id | Yes | The user to summarize |
It returns the user's total memories, the count by type, the count by scope and the ten most-used tags. If your access does not cover those memories, it returns zero counts.
context_inject
| Input | Required | Meaning |
|---|---|---|
query | Yes | The current topic or question |
user_id | No | Narrow to one owner |
project_id | No | The project to draw from. Leave it out for your own memories |
max_tokens | No | A size limit for the text. Default 2000 |
top_k | No | How many memories to consider. Default 5 |
It runs a memory search and wraps the results in a memory_context block. It stops adding memories once the size limit is reached. The size is an estimate. The reply also gives the number of memories used.
What is not offered
- MCP resources and prompts. Both lists come back empty.
- A knowledge search tool. A newer internal reference lists eight tools, including
knowledge_search. The code reviewed lists seven and has no such tool. This page follows the code.
Connect a client
Copy the setting
Open the Cortex MCP server page and go to the Connect a client tab.
Paste it into your client
Paste the block into the MCP settings of your client.
Add sign-in if your setup needs it
The block holds no token. If your environment needs one, ask your administrator.
Check the tools
Your client should list the seven tools above.
Tips
- Try the read tools first, on the Cortex page's Try a tool tab.
- Give
project_idwhen you want project memories. Without it, only your own memories are searched. - Remember that
memory_addis queued. A new memory may not show in search at once.