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
.pinin 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
Release files for pin-memory 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pin_memory-0.2.0.tar.gz | 61.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pin_memory-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 66.7 kB
Release files / pin_memory-0.2.0.tar.gz
| Download URL | pin_memory-0.2.0.tar.gz |
|---|---|
| Size | 61.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dea6e1dc4645496ccffe608d98db597c9322d4ce0e0ad78c31717676badad887
|
|
BLAKE2b-256 checksum How to use checksums |
24db1f513bdb02a4994f8e8822b5befad44f96d504d8b911167d6e43b6744004
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 8, 2026.
Transparency logRelease files / pin_memory-0.2.0-py3-none-any.whl
| Download URL | pin_memory-0.2.0-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
31883e051596e41e1a7eb7d8e6f561a9c1e86b12b380a5786835072858b866a4
|
|
BLAKE2b-256 checksum How to use checksums |
3ed23da2a2903fc2d1bde8c2e66b33d6598eb6dd25d6e31452bc3c4d934d7497
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 8, 2026.
Transparency log