Past.dev MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Past.dev MCP or direct API to ingest memories, recall source-backed context, inspect memory traces, and clean up stored data through natural language.

Past.dev logoPast.dev
Api Key

Past.dev is a source-backed memory service for AI agents. It helps agents retain, trace, and safely manage durable context.

29 Tools

Try Past.dev now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
Past.dev
Try asking
TOOLS

Supported Tools

Every Past.dev action and event your agent gets out of the box.

Replace Identities in Bulk

Atomically create or replace complete trait sets for up to 1,000 identities; omitted traits replace the identity with no traits.

Delete Audience

DESTRUCTIVE ACCESS CHANGE: Permanently delete an audience.

Delete Identity

DESTRUCTIVE: Permanently delete an identity directory record and remove it from every audience.

Permanently Delete Ingestion Memory

DESTRUCTIVE: Permanently delete every data point accepted by one ingestion and memory depending only on those points.

Delete Memory Data Point

DESTRUCTIVE: Permanently delete one data point by its caller-owned source id and remove memory derived from it.

Delete Memory Data Points

DESTRUCTIVE: Permanently and atomically delete up to 1,000 data points by caller-owned source id and remove memory derived from them.

Estimate Ingestion

Cut files into data points, plan batches, and estimate credits without storing data or spending credits.

Explain Ingestion

Diagnose how far one send progressed, including per-item searchability, memory counts, failure details, and the recommended next step.

Find Trace Roots

Find memory and source nodes for lineage or timeline inspection, returning independent memory and source cursors.

Get Audience

Read one fixed, rule, or default audience with its definition and current membership and memory counts.

Get Identity

Return one identity's traits, origin, timestamps, and current audience memberships.

Get Ingestion Status

Poll one ingestion for processing, completion, failure, and project readiness without consuming metered request quota.

Get API Request

Read one API call and its retained allowlisted headers and request/response payload; bearer credentials are never returned.

Get Request Histogram

Count accepted, failed-later, and rejected API calls in provider-selected time buckets using request-log filters.

Get Trace Lineage

Read what a memory or source was built from and what was built on it, including graph edges and hidden-node count.

Get Trace Node

Read one memory or source node with revision, validity, replacement, request, content, and graph counts.

Get Trace Timeline

Read rooted source and memory work, ingestions, recalls, and supersessions on a clock for a window of at most 31 days.

Get Usage

Return the current UTC month's credit balance, metering state, and project ingestion, recall, and cap usage.

Ingest Memory

Ingest one timestamped data point into durable memory, optionally associating it with an identity and audience; reusing an id replaces the prior revision when stored fields change.

Ingest Memory Batch

Atomically ingest 1 to 1,000 ordered memory data points in one request, avoiding fragile per-item agent loops.

List Audiences

List every audience in the connected project, including the default project audience and current membership and memory counts.

List Identities

List project identities newest first, optionally filtering by one trait, and return a cursor for the next page.

List API Requests

List the connected project's API calls newest first, with filters and a cursor for the next page.

Recall Memory

Return ranked, source-backed memory visible to an identity for a query, with optional time range, sort order, and evidence budget controls.

Recompute Audience

Recompute an audience's membership from its definition and apply the refreshed access set to recall immediately.

Create or Replace Audience

Create or completely replace a fixed-list or trait-rule audience and its access definition.

Replace Identity

Create an identity or replace its complete trait set; omitted or empty traits remove all existing traits.

Retry Ingestion

Retry a stopped or failed ingestion under its existing id without spending additional credits; completed ingestions are rejected.

Update Identity Traits

Merge selected identity traits while preserving unspecified keys; set a trait value to null to remove that key.

SETUP GUIDE

Connect Past.dev MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["past_dev"],
  mcp: true,
});
Create a session scoped to Past.dev and read its MCP URL and headers
3

Connect your agent to the MCP server

typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Recall source-backed memories about my product launch plans from last month",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a Past.dev request
SETUP GUIDE

Connect Past.dev API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["past_dev"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to Past.dev
3

Run Past.dev tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Recall source-backed memories about my product launch plans from last month" }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
Send a request, execute the Past.dev tool calls through the session, and print the final answer

Why Use Composio?

AI Native Past.dev Integration

  • Supports both Past.dev MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable memory ingestion, recall, and diagnostics
  • Rich coverage for identities, audiences, usage, request logs, traces, and cleanup

Managed Auth

  • Securely stores and supplies your Past.dev API key during tool execution
  • Central place to manage, scope, and revoke Past.dev access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Past.dev
  • Scoped, least privilege access to Past.dev resources
  • Full audit trail of agent actions to support review and compliance

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
FAQ

Frequently asked questions

Yes, Past.dev requires you to configure your own API key. Once set up, Composio handles secure credential storage and API request handling for you.

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Yes. Composio is SOC 2 Type II compliant and is built to keep your Past.dev connection and credentials secure. OAuth tokens and API keys are encrypted, and sensitive customer data is protected at rest and in transit.

Composio also undergoes independent security testing and continuously monitors its systems for security threats. You can review the latest reports and policies in the Composio Trust Center.

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Create the key in your Past.dev account settings, then paste it once on Composio's connection page. Composio stores it encrypted and uses it only for the Past.dev actions your agent runs. Nobody else in your workspace can read it, and you can revoke it inside Past.dev at any time.

When you connect a Past.dev account through Composio, every action runs under that account, so anything the agent creates, sends, or changes shows up in Past.dev as done by you. Keep an approval step in your prompt for actions with side effects, such as sending or deleting, and have the agent draft first.

Whatever the credentials you connect allow inside Past.dev. If Past.dev lets you scope a key to specific permissions, create a scoped one so the agent can only do what you intend. You can revoke the key inside Past.dev at any time.

Yes. Composio supports multiple connected accounts for the same app, and that works in Claude, ChatGPT, or any other assistant you connect through Composio. Give each Past.dev connection a name such as work or personal, and the assistant uses the one you mention in the request. Each account keeps its own credentials and nothing is merged.

The connection stops working the moment Past.dev rejects the old key. Create a new key in Past.dev and reconnect the account from the Composio dashboard or by asking your agent to reconnect Past.dev. Nothing else changes.

Composio's free Hobby plan includes 100,000 tool calls per month with no credit card, which covers most personal Past.dev use. Paid plans add higher limits and team features. Your Past.dev plan and its API limits still apply as usual.

Built-in connectors usually give one AI access to a limited set of apps. Many people use Composio because it lets their AI connect to more apps than it normally supports, or connect to multiple accounts for the same app (e.g. connect Claude to multiple Past.dev accounts).

With Composio, you connect Past.dev once and then use it across different AI assistants without setting it up separately in each one. Connect your apps to Composio once, then connect Composio to whichever AI you use, whether that's Claude, ChatGPT, Hermes, or your own custom assistant.

Start with Past.dev.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Past.dev tool your agent needs.Free to start.

Start building