Skip to main content

crewai-mnemopay

MnemoPay tools for CrewAI -- give any agent persistent cognitive memory and micropayment capabilities.

Built as a standalone package per crewAI custom tool publishing guide, extracted from crewAIInc/crewAI#5251.

Installation

pip install crewai-mnemopay

The MnemoPay MCP server requires Node.js:

npm install -g @mnemopay/sdk

Quick Start

from crewai import Agent
from crewai_mnemopay import mnemopay_tools

agent = Agent(
    role="Research Assistant",
    goal="Help users with research and remember preferences",
    tools=mnemopay_tools(),
)

Individual tools

from crewai import Agent
from crewai_mnemopay import (
    MnemoPayRememberTool,
    MnemoPayRecallTool,
    MnemoPayChargeTool,
)

agent = Agent(
    role="Paid Research Assistant",
    goal="Research topics, remember findings, and charge for work",
    tools=[
        MnemoPayRememberTool(),
        MnemoPayRecallTool(),
        MnemoPayChargeTool(),
    ],
)

Connect to a remote MnemoPay server

from crewai_mnemopay import mnemopay_tools

tools = mnemopay_tools(server_url="https://mnemopay-mcp.fly.dev")

Available Tools

Memory Tools

Tool Description
MnemoPayRememberTool Store a memory that persists across sessions
MnemoPayRecallTool Recall memories with optional semantic search
MnemoPayForgetTool Permanently delete a memory by ID
MnemoPayReinforceTool Boost a memory's importance score
MnemoPayConsolidateTool Prune stale memories below decay threshold

Payment Tools

Tool Description
MnemoPayChargeTool Create an escrow charge for work delivered
MnemoPaySettleTool Finalize a pending escrow transaction
MnemoPayRefundTool Refund a transaction (docks reputation)
MnemoPayBalanceTool Check wallet balance and reputation
MnemoPayProfileTool Full agent stats
MnemoPayHistoryTool Transaction history
MnemoPayLogsTool Immutable audit trail

How It Works

MnemoPay communicates with the MnemoPay MCP server via JSON-RPC. By default it spawns a local server via stdio. You can also point it at a remote server URL.

Memory works like human cognition: memories decay over time unless reinforced. This keeps the agent's context relevant without unbounded growth.

Payments use escrow: agents charge after delivering value, users settle to release funds. A reputation system tracks agent trustworthiness.

Development

git clone https://github.com/mnemopay/crewai-mnemopay.git
cd crewai-mnemopay
pip install -e ".[dev]"
pytest

License

MIT

Metadata

Release files for crewai-mnemopay 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crewai-mnemopay 0.1.0
File Size Uploaded Provenance Actions
crewai_mnemopay-0.1.0.tar.gz 8.3 kB Without provenance Details for crewai_mnemopay-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for crewai-mnemopay 0.1.0
File Interpreter ABI Platform Actions
crewai_mnemopay-0.1.0-py3-none-any.whl Python 3 none any Details for crewai_mnemopay-0.1.0-py3-none-any.whl

Total release size: 16.0 kB

Release files / crewai_mnemopay-0.1.0.tar.gz

Download URL crewai_mnemopay-0.1.0.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e3d8f2bea959edfd8eeba2ce7fa3e3a3e884adb8bdde010cc95cb94aaebc6d17
BLAKE2b-256 checksum
How to use checksums
8c8eacef5618b0043e30ea01c7224897cbe4ea7dcaec5adc88c431e81057eb5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / crewai_mnemopay-0.1.0-py3-none-any.whl

Download URL crewai_mnemopay-0.1.0-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf22407d5208eb4afb54bf3753a5baff246edab85e0183f150aeff69c396215f
BLAKE2b-256 checksum
How to use checksums
5df95129c4559cd603d8b9962a173bdfbf2b28f7630ec598de47326f20c0f4d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for crewai-mnemopay 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page