Skip to main content

Pin Memory

A Model Context Protocol (MCP) server for managing factoids across different scopes (global, workspace, and project).

Features

  • Pin: Store factoids in global, workspace-specific, or project-local storage.
  • Recall: Retrieve factoids based on current context.
  • MCP Integration: Exposes tools for LLMs to autonomously remember and recall information.

Installation

Using uv (recommended):

# Install as a global tool
uv tool install .

# Or run directly
uv run pin-memory mcp

Usage

CLI Commands

Pin Memory provides a CLI for managing factoids:

# List all factoids
pin-memory show

# Install agent instructions to AGENTS.md
pin-memory install --workspace my-workspace

# Launch the MCP server
pin-memory mcp

Scopes

  • Global: Stored in ~/.scartill/pin.
  • Workspace: Stored in ~/.scartill/pin/workspaces/<workspace_name>.
  • Project: Stored in .pin in the current working directory.

MCP Configuration

To use this with an MCP client (e.g. Claude Desktop, Gemini CLI), add it to your configuration:

{
  "mcpServers": {
    "pin-memory": {
      "command": "uv",
      "args": [
        "--directory",
        "C:/path/to/pin-memory",
        "run",
        "pin-memory",
        "mcp"
      ]
    }
  }
}

MCP Tools

pin

Stores a factoid in memory.

  • factoid_name: Name of the factoid.
  • factoid: The content of the factoid.
  • location: "global", "project", or "workspace/".

recall

Recalls all pinned factoids from global, requested workspace, and local project scopes.

  • workspace: Optional name of the workspace.

Development

# Clone the repository
git clone https://github.com/scartill/pin-memory.git
cd pin-memory

# Sync dependencies
uv sync

# Run tests (if applicable)
uv run pytest

Metadata

Release files for pin-memory 0.3.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 pin-memory 0.3.0
File Size Uploaded Provenance Actions
pin_memory-0.3.0.tar.gz 66.9 kB With provenance Details for pin_memory-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pin-memory 0.3.0
File Interpreter ABI Platform Actions
pin_memory-0.3.0-py3-none-any.whl Python 3 none any Details for pin_memory-0.3.0-py3-none-any.whl

Total release size: 72.4 kB

Release files / pin_memory-0.3.0.tar.gz

Download URL pin_memory-0.3.0.tar.gz
Size 66.9 kB
Tags Source
SHA-256 checksum
How to use checksums
294595a0f093c9038551bdbaba3d1aed643ce922099b92b9b6c6b40ba5d6474b
BLAKE2b-256 checksum
How to use checksums
a4db1a463619a9557b9086a70cb2e30bcd7e44c8c7dd24a56ee8715f9215a05d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release files / pin_memory-0.3.0-py3-none-any.whl

Download URL pin_memory-0.3.0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3f01877cb7f0261c8d089c5a2fc2b5e31d86692f3045c310b040a68bf09fcb8
BLAKE2b-256 checksum
How to use checksums
9e19c03c03f9c313305acaf47c0481087c5bf511a73d4accea4a6f234c3f338d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Security for pin-memory 0.3.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pin_memory-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

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.

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