Agtrepo Memory

io.github.agtrepoPublished by GitHub account agtrepov0.2.0Updated Oct 24, 2026

Encrypted, pay-per-use persistent memory storage for AI agents, gated by x402 payments on Base.

The publisher's own server: Memory.fit

VerifiedStreamable HTTPWeb executableFinanceKnowledge & Memory

Overview

AI-generated overview

Remote MCP service for encrypted, pay-per-use persistent memory: store, read and extend client-encrypted blobs, paid via x402 on Base.

What you can do
  • Store client-encrypted text memories (standard padded base64, up to 16 KB) and get back an id
  • Read a stored memory's ciphertext by id, with 70% of the fee accruing to its creator
  • Extend a memory's lifetime by 30 days, up to 365 days from creation
  • Register a wrapped content key for a specific reader with a wallet signature, and release it to that reader
  • Send free feedback to the human operators
When to use it
When an agent needs memory that outlives a session and is shared across agents or machines, and you accept paying per store, read and extend with x402 on Base. Suitable when the client encrypts content itself and only the ciphertext should reach the server.
Requirements
Remote streamable HTTP endpoint at agtrepo.com; no local install or self-hosting. A wallet able to make x402 payments on Base L2 for the paid tools, and an EIP-191 signing key for key-release registration. Client-side encryption before upload; ciphertext must be standard padded base64.
Before you install
Three tools cost money per call through x402 payments on Base; reads pay the memory's creator 70% of the fee. Content is encrypted client-side, but a creator can make a document's key public, exposing it. Key-release signatures must be made at call time and are rejected if pre-signed. Memories expire after 30 days unless extended and are deleted once expired.

Installation

In SourceWeft

  1. Open Agtrepo Memory in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.agtrepo%2Fagtrepo-memory/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "agtrepo-memory": {
      "type": "http",
      "url": "https://agtrepo.com/mcp"
    }
  }
}

README

A2A Persistent Memory Protocol

Encrypted, pay-per-use persistent memory storage for AI agents (and humans), gated by the x402 HTTP-402 payment standard on Base L2. 70% of every paid read accrues to the memory's creator, tracked per wallet on the live top-creators leaderboard.

Live service: https://agtrepo.com Discovery manifest: https://agtrepo.com/.well-known/agent-memory.json MCP endpoint: https://agtrepo.com/mcp (streamable HTTP transport) OpenAPI: https://agtrepo.com/openapi.json Examples: https://agtrepo.com/examples

MCP tools

ToolCostWhat it does
store_persistent_memoryx402 paymentStore client-encrypted content (standard base64, up to 16 KB). Returns the memory's id.
read_memoryx402 paymentRead a memory's ciphertext. 70% of the fee accrues to its creator.
extend_memoryx402 paymentExtend a memory's lifetime by 30 days, up to 365 days from creation.
register_key_releasefreeCreator registers a wrapped content key for one reader, proven by a wallet signature.
share_memory_keyfreeRelease a registered wrapped key to its reader, or the key of a public document.
send_feedbackfreeSend named or anonymous feedback to the operators.

Content is encrypted by the client before upload; the server never sees plaintext or content keys, except where a creator explicitly makes a document's key public. Memories expire after 30 days unless extended, and are deleted once expired.

Two details integrators most often get wrong:

  • Sign at call time. The key-release signature covers agtrepo-memory:key-release:{id}:{readerPubKey}:{timestamp}:{sha256hex(wrappedKey)}, where {timestamp} is Unix epoch milliseconds within 5 minutes of the server clock and {id} only exists after the memory is stored. A pre-signed or archived signature is rejected.
  • Ciphertext is standard, padded base64. Unpadded or URL-safe base64 is rejected.

What's in this repository

This repo is a public-facing subset of the service's codebase, published to support MCP registry / directory listings and to document the protocol surface for integrators. It intentionally does not contain the service's backend implementation.

Included:

  • server.json — MCP registry submission manifest.
  • public/ — the full client-facing web site: landing page, search, login, account, examples, feedback, the Terms of Service and the Privacy, Cookie and Refund policies, their raw-markdown (.md) mirrors, llms.txt, and the OpenAPI spec.
  • src/mcp/server.ts — the MCP surface as registered on the live server: tool names, descriptions, input schemas, which tools are paid, and the transport handling.
  • src/x402.ts — the x402 protocol integration (resource server, facilitator configuration, EVM payment scheme, Bazaar discovery metadata) as used on the live server.

Not included, by design: the tool handlers themselves, database access and schema, pricing/credit logic, payment-ledger and settlement handling, anti-abuse/rate-limiting logic, session/auth internals, billing integration, search-ranking implementation, and any environment configuration or credentials. Those remain in this project's private codebase.

Because of that, the two src/ files here are not buildable in isolation — they import from internal modules that are not part of this repository. They're included verbatim as accurate documentation of the MCP tool schema and the x402 protocol wiring, not as a runnable server. To actually use the service, talk to the live endpoints above (REST or MCP) — no self-hosting is intended or supported from this repo.

License

MIT — see LICENSE.

Source: README.md at commit 3512b69

Tools

6

store_persistent_memory

Stores encrypted text memory (standard padded base64 ciphertext, up to 16384 bytes decoded). Requires x402 payment. Returns the memory's id.

Parameterstagsciphertextrequired

read_memory

Reads an encrypted memory by id. Requires x402 payment. 70% of the fee accrues to the memory's creator.

Parametersidrequired

extend_memory

Extends a memory's TTL by 30 days, up to a maximum total lifetime of 365 days from creation. Requires x402 payment. An expired memory is deleted and cannot be extended.

Parametersidrequired

share_memory_key

Free. Releases a previously creator-registered wrapped key to a reader, or the raw content key for a public document.

ParametersidrequiredreaderPubKeyrequired

register_key_release

Free. Creator registers a wrapped content key for a specific reader's public key, proven by an EIP-191 signature over `agtrepo-memory:key-release:{id}:{readerPubKey}:{timestamp}:{sha256hex(wrappedKey)}` (the hash is lowercase hex SHA-256 of the wrappedKey string exactly as sent, so the signature can't be reused with a different key). `{id}` only exists after store_persistent_memory returns, and `{timestamp}` is Unix epoch milliseconds (an integer, not an ISO date) that must be within 5 minutes of the server clock -- so sign at call time; a pre-signed or archived signature will be rejected.

ParametersidrequiredsignaturerequiredtimestamprequiredwrappedKeyrequiredreaderPubKeyrequired

send_feedback

Free. Sends a message to the human operators of this service: a bug report, a problem with these tools or the documentation, or a suggestion. It is read by people, not processed by software, and nothing is returned beyond an acknowledgement. Do NOT use it for status updates, progress notes, task narration, error logs, or as a fallback when another tool is unavailable or a payment cannot be made -- it cannot complete, retry or work around any task. Name is optional (omit for anonymous feedback); message is limited to 1000 characters.

Parametersnamemessagerequired

Version history

2
  1. v0.2.0LatestOct 2, 2026
  2. v0.1.0Sep 16, 2026

Score

100% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

Other Memory integrations