Docs
Sign in

Cortex MCP

Cortex MCP lets outside AI tools search, read and write Cortex memory through a set of seven tools.

Screenshot to add: The Cortex MCP server page listing the seven memory 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

ItemValue
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 nameapex-memory-mcp
Protocol version2024-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

ToolWhat it does
memory_searchSearches memories
memory_addSaves a new memory
memory_getFetches one memory by its ID
memory_updateChanges an existing memory
memory_deleteDeletes a memory by its ID
user_profile_getSummarizes the memories held for one user
context_injectReturns relevant memories as a block of text ready to put in a conversation
InputRequiredMeaning
queryYesThe search text
top_kNoThe most results to return. Default 5
memory_typeNoLimit to one memory type. The list of types comes from Cortex itself
scopeNoprivate, team or org
user_idNoNarrow to one owner, within what you may already read. It does not change who you are
project_idNoThe project to search. Leave it out to search your own personal memories

It returns the matching memories, the total and the query.

memory_add

InputRequiredMeaning
contentYesThe text to remember
memory_typeNoA memory type. Default episodic
scopeNoprivate, team or org. Default private
space_idNoThe memory space to file it in. Leave it out to keep it unfiled
user_idNoThe owner. If left out, the memory is recorded as from mcp_user
tagsNoA list of tags
importanceNoA 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

ToolInputs
memory_getmemory_id (required)
memory_updatememory_id (required), and any of content, importance and tags
memory_deletememory_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

InputRequiredMeaning
user_idYesThe 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

InputRequiredMeaning
queryYesThe current topic or question
user_idNoNarrow to one owner
project_idNoThe project to draw from. Leave it out for your own memories
max_tokensNoA size limit for the text. Default 2000
top_kNoHow 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

  1. Copy the setting

    Open the Cortex MCP server page and go to the Connect a client tab.

  2. Paste it into your client

    Paste the block into the MCP settings of your client.

  3. Add sign-in if your setup needs it

    The block holds no token. If your environment needs one, ask your administrator.

  4. 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_id when you want project memories. Without it, only your own memories are searched.
  • Remember that memory_add is queued. A new memory may not show in search at once.