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.1

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.1
File Size Uploaded Provenance Actions
pin_memory-0.3.1.tar.gz 67.1 kB With provenance Details for pin_memory-0.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 72.6 kB

Release files / pin_memory-0.3.1.tar.gz

Download URL pin_memory-0.3.1.tar.gz
Size 67.1 kB
Tags Source
SHA-256 checksum
How to use checksums
414b01ad595f22d9a650e9141f4c0e0aa7349a73e7d5164bac4f19abc5328f45
BLAKE2b-256 checksum
How to use checksums
e3f6ebc6106a295dd47e8d59efdb4337f057e3c5293c13aed64e918b733ff552
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.1-py3-none-any.whl

Download URL pin_memory-0.3.1-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cbb49314bd480e86b47f710a28f6131940d738fdd64dc7f705dac17ed20c2b05
BLAKE2b-256 checksum
How to use checksums
89fb6f3a055dc18f1edc336a068c5365435502c0c3fb0c6a69582928ea1fa61c
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.1

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.1.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