[FEATURE] New project: memory over MCP with tool discovery (mcp_ai_agents)

Author: OlyaTiCreated Sep 22, 2026Updated Sep 22, 2026

Feature Description

Add a runnable MCP example that drives an agent's memory entirely through the Model Context Protocol, with no memory SDK imported. The agent starts the Mnemoverse memory server as a subprocess with npx, speaks MCP over stdio, and walks four steps: list_tools() to show every tool and its required arguments, memory_write to record decisions, memory_read to recall them in a later session, and memory_feedback to report which recalled note actually helped. The same question is then asked again so the reader can see where that note lands the second time.

This is deliberately the protocol angle, not the SDK angle. #323 already covers the SDK under memory_agents/, and I said on #321 that I would not open a competing PR for that folder.

Two things make it different from what is already in mcp_ai_agents/:

  • No project in that folder wraps a memory MCP server today. The servers wrapped are databases, GitHub, Airbnb, Taskade, docs, telemetry and sandboxes.
  • Only e2b_docker_mcp_agent does explicit tool discovery, and it does it over Streamable HTTP against a gateway. A stdio list_tools() walkthrough is not covered.

Disclosure: I work on Mnemoverse.

Target Project

mnemoverse_mcp_agent

Project Directory

mcp_ai_agents

Motivation

Readers who wire an MCP server into an agent for the first time usually have two questions that the existing examples answer only implicitly: what exactly does this server expose, and what does a tool call return. The discovery step answers the first on screen. The rest of the run answers the second, one call at a time, with the raw result printed rather than wrapped.

The memory angle adds the step that memory examples usually stop before. Capture and recall are the easy half. The half that is missing is telling the memory layer how a recalled item worked out, so the next recall is ordered by what helped rather than by similarity alone. Over MCP that is one tool call, and the run shows the ranking on both sides of it.

Proposed Solution

  • Location: mcp_ai_agents/mnemoverse_mcp_agent/, one self-contained project in one PR, linked with Closes #<this issue>.
  • Transport: StdioServerParameters(command="npx", args=["-y", "@mnemoverse/[email protected]"], env=...) with stdio_client and ClientSession from the mcp package, the same shape taskade_mcp_agent already uses for its vendor server.
  • The npm version is pinned on purpose. An unpinned npx -y can run an older copy already installed on the machine, which I hit while testing.
  • Model calls through Nebius Token Factory, following the folder convention.
  • README.md following .github/README_TEMPLATE.md with the heading set taskade_mcp_agent uses, a pyproject.toml, a .env.example with placeholder keys only, and a screenshot under assets/.
  • Memories are written to their own namespace, overridable by an environment variable, so the example cannot mix with anything else on a reader's key.
  • Graceful handling when a key is missing or wrong, when npx is absent, and when the model step fails. The protocol walkthrough still completes in each case.
  • One catalog line in the root README.md under MCP Agents, and the section count from 14 to 15. The repository header count is left alone, since it is already off by one before this PR and another open branch is fixing it.

User Impact

Two audiences. Readers new to MCP get a short program where every protocol step is visible, including discovery, which most examples skip. Readers building agent memory get a complete write, read and outcome-feedback loop they can run and watch change.

Alternatives Considered

The SDK version under memory_agents/, which is what #321 asked for and what #323 implements. Taking that folder as well would mean two projects for one product and a collision with an open PR, so this proposes the other surface instead.

A Streamlit interface, as taskade_mcp_agent and github_mcp_agent use. A command line run fits better here, because the value is the sequence of protocol calls and their raw results, which a chat box hides.

Screenshots/Mockups

A screenshot of a full run is included in the project's assets folder with the PR.

Implementation Checklist

  • I have searched for similar feature requests
  • I have provided a detailed description of the feature
  • I have explained the motivation and user impact
  • I have considered alternative solutions

Source: Arindam200/awesome-ai-apps