PanClip MCP Server
Give AI agents persistent memory with intelligent clipboard management.
Why PanClip?
When working with AI agents like Claude, context is lost between conversations. Code snippets, configurations, and solutions disappear. PanClip solves this by giving agents a persistent, searchable memory they can write to and read from across sessions.
Built for developers who use AI agents to code.
Key Features
- Persistent Memory: Store code, configs, and solutions across Claude sessions
- Semantic Search: Find content using natural language, not keywords
- Auto-Tagging: AI automatically categorizes content for better retrieval
- Fast: <1ms response times with intelligent caching
- Works Offline: Falls back to local embeddings when APIs are unavailable
- Universal AI Support: Auto-detects OpenAI, Anthropic, Ollama, LM Studio, and 100+ providers
- ✅ Production-ready error handling and logging
Installation
For Claude Desktop Users
# Install from GitHub
claude mcp add panclip -- uvx --from git+https://github.com/PanStudio/panclip.git panclip
# Or clone and run locally
git clone https://github.com/PanStudio/panclip.git
cd panclip
claude mcp add panclip -- uv --directory "$(pwd)" run panclip
For Development
git clone https://github.com/PanStudio/panclip.git
cd panclip
uv sync
uv run panclip
Usage
Once connected to Claude Desktop, the agent can:
Store: "Save this Docker configuration for Python microservices"
Search: "Find that nginx reverse proxy config from yesterday"
List: "Show my recent code snippets"
Available MCP Tools
clip_add- Store content with automatic taggingclip_search- Semantic search through stored contentclip_list- List recent clipsclip_remove- Remove specific clipsclip_stats- Storage statistics
Configuration
The server auto-detects available AI providers. To use specific providers, set environment variables:
# OpenAI (recommended for best embeddings)
export OPENAI_API_KEY="sk-..."
# Anthropic
export ANTHROPIC_API_KEY="sk-ant-..."
# Local models (Ollama/LM Studio)
export OLLAMA_API_BASE="http://localhost:11434"
export LMSTUDIO_API_BASE="http://localhost:1234"
Edit config.yaml for advanced settings:
intelligence:
embedding_model: "text-embedding-3-small"
tagging_model: "gpt-3.5-turbo"
storage:
path: "~/.panclip/lancedb"
cache:
backend: "memory" # or "redis" if available
Architecture
Claude Desktop ──MCP──> PanClip ──> LanceDB (vectors)
│
└──> LiteLLM ──> AI Provider
- MCP Protocol: Native stdio communication with Claude
- LanceDB: Local vector database for semantic search
- LiteLLM: Universal router for 100+ AI providers
- Smart Caching: Memory cache for instant responses
Performance
- Response time: <1ms (cached), <10ms (uncached)
- Search latency: <20ms across 100k clips
- Memory usage: <50MB for 10k clips
- Startup time: <2 seconds
Development
# Run tests
PYTHONPATH=. uv run pytest
# Format code
uv run black panclip/
# Lint
uv run ruff check .
Contributing
Contributions welcome! This aims to be a reference implementation for MCP servers.
- Fork the repository
- Create your feature branch
- Add tests for your changes
- Ensure tests pass
- Submit a pull request
Author
Anthony Kougkas
- GitHub: @akougkas
- Website: akougkas.io
- Issues: github.com/PanStudio/panclip/issues
- Security reports: private vulnerability reporting
License
Apache License 2.0. See LICENSE and NOTICE.
Copyright 2025-2026 PanStudio
Acknowledgments
- Model Context Protocol by Anthropic
- LanceDB for vector storage
- LiteLLM for universal AI support
Metadata
Release files for panclip 1.0.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 | Provenance | Actions |
|---|---|---|---|---|
| panclip-1.0.0.tar.gz | 412.8 kB | With provenance | Details for panclip-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| panclip-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for panclip-1.0.0-py3-none-any.whl |
Total release size: 443.1 kB
Release files / panclip-1.0.0.tar.gz
| Download URL | panclip-1.0.0.tar.gz |
|---|---|
| Size | 412.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
478c0a5e7aa263ccfb1e94c42507e0b7b162e6631cda3d8166a89e8f9d176b5c
|
|
BLAKE2b-256 checksum How to use checksums |
7fdf238e0701da683c9213047f31c5e537fb8e77190f24bc4c4c4768ea9b31ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 26, 2026.
Transparency logRelease files / panclip-1.0.0-py3-none-any.whl
| Download URL | panclip-1.0.0-py3-none-any.whl |
|---|---|
| Size | 30.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee13f90650f5246469d92ef29e641c635eb75b704327679cbbc0a9c3bd5cf32e
|
|
BLAKE2b-256 checksum How to use checksums |
145ff4e06cca2a5c2c8225eb522875cc6ff3de1ccf330ea461d9056425ea6fc6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 26, 2026.
Transparency logSecurity for panclip 1.0.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
Both files in this release have been uploaded with provenance metadata.
Attestation for panclip-1.0.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 Nov 26, 2026.
Transparency logA 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.