{"id":51026805,"url":"https://github.com/gitstq/snippetvault-mcp","last_synced_at":"2026-06-21T20:02:22.148Z","repository":{"id":358485399,"uuid":"1241589773","full_name":"gitstq/snippetvault-mcp","owner":"gitstq","description":"🚀 A lightweight MCP server for intelligent code snippet management with semantic search | 轻量级MCP代码片段管理服务器","archived":false,"fork":false,"pushed_at":"2026-05-17T15:24:03.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-17T17:40:20.783Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gitstq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-17T15:22:43.000Z","updated_at":"2026-05-17T15:23:37.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gitstq/snippetvault-mcp","commit_stats":null,"previous_names":["gitstq/snippetvault-mcp"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gitstq/snippetvault-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fsnippetvault-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fsnippetvault-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fsnippetvault-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fsnippetvault-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitstq","download_url":"https://codeload.github.com/gitstq/snippetvault-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fsnippetvault-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34623906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-21T20:02:21.462Z","updated_at":"2026-06-21T20:02:22.138Z","avatar_url":"https://github.com/gitstq.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 SnippetVault MCP\n\n\u003cp align=\"center\"\u003e\n  \u003cb\u003e🧠 Intelligent Code Snippet Management for AI Assistants\u003c/b\u003e\u003cbr\u003e\n  \u003ci\u003eA lightweight MCP server that brings semantic search to your code snippets\u003c/i\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#-english\"\u003eEnglish\u003c/a\u003e •\n  \u003ca href=\"#-简体中文\"\u003e简体中文\u003c/a\u003e •\n  \u003ca href=\"#-繁體中文\"\u003e繁體中文\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n## 🇺🇸 English\n\n### 🎉 Introduction\n\n**SnippetVault MCP** is a lightweight [Model Context Protocol (MCP)](https://modelcontextprotocol.io) server that enables AI assistants like Claude and Cursor to intelligently manage and retrieve your code snippets.\n\n**Why SnippetVault?**\n- 🔍 **Semantic Search** - Find code by meaning, not just keywords\n- 🤖 **AI-Native** - Designed specifically for MCP-compatible AI assistants\n- 🏷️ **Auto-Tagging** - Automatic language detection and smart tagging\n- ⚡ **Lightweight** - Minimal dependencies, fast startup\n- 🔒 **Local-First** - Your code stays on your machine\n\n### ✨ Core Features\n\n| Feature | Description |\n|---------|-------------|\n| 💾 **Save Snippets** | Store code with titles, descriptions, and tags |\n| 🔍 **Semantic Search** | Find snippets by natural language queries |\n| 🏷️ **Smart Tagging** | Auto-detect programming languages |\n| 📊 **Usage Analytics** | Track how often snippets are retrieved |\n| 🎯 **Filter \u0026 Sort** | By language, tags, or usage count |\n\n### 🚀 Quick Start\n\n#### Requirements\n- Python 3.9+\n- ~100MB disk space (for embedding model)\n\n#### Installation\n\n```bash\npip install snippetvault-mcp\n```\n\n#### Configure Claude Desktop\n\nAdd to your `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"snippetvault\": {\n      \"command\": \"python\",\n      \"args\": [\"-m\", \"snippetvault_mcp\"],\n      \"env\": {\n        \"SNIPPETVAULT_DATA_DIR\": \"~/.snippetvault\"\n      }\n    }\n  }\n}\n```\n\n**Config file locations:**\n- macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`\n- Windows: `%APPDATA%/Claude/claude_desktop_config.json`\n- Linux: `~/.config/Claude/claude_desktop_config.json`\n\n#### Configure Cursor\n\nAdd to Cursor's MCP settings:\n\n```json\n{\n  \"mcpServers\": {\n    \"snippetvault\": {\n      \"command\": \"python\",\n      \"args\": [\"-m\", \"snippetvault_mcp\"]\n    }\n  }\n}\n```\n\n### 📖 Usage Guide\n\nOnce configured, you can ask Claude/Cursor to:\n\n**Save a snippet:**\n```\n\"Save this Python function for quick sort: [paste code]\"\n```\n\n**Search snippets:**\n```\n\"Find my code for sorting algorithms\"\n\"Search for database connection examples\"\n```\n\n**List snippets:**\n```\n\"Show all my Python snippets\"\n\"List snippets tagged with 'api'\"\n```\n\n**Get statistics:**\n```\n\"How many snippets do I have?\"\n\"Show my snippet vault stats\"\n```\n\n### 🔧 Available Tools\n\n| Tool | Description |\n|------|-------------|\n| `save_snippet` | Save a new code snippet |\n| `get_snippet` | Retrieve a snippet by ID |\n| `search_snippets` | Semantic search through snippets |\n| `list_snippets` | List all snippets with filters |\n| `delete_snippet` | Delete a snippet |\n| `update_snippet` | Update an existing snippet |\n| `list_tags` | List all unique tags |\n| `get_stats` | Get vault statistics |\n\n### 💡 Design Philosophy\n\nSnippetVault was built with these principles:\n\n1. **AI-First** - Designed from the ground up for AI assistant integration\n2. **Developer-Friendly** - Natural language interaction, no complex queries\n3. **Privacy-First** - All data stays local, no cloud dependencies\n4. **Extensible** - Clean architecture for easy customization\n\n### 📦 Development\n\n```bash\n# Clone repository\ngit clone https://github.com/gitstq/snippetvault-mcp.git\ncd snippetvault-mcp\n\n# Install in development mode\npip install -e \".[dev]\"\n\n# Run tests\npytest\n\n# Format code\nblack src/\nruff check src/\n```\n\n### 🤝 Contributing\n\nContributions are welcome! Please:\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'feat: add amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n### 📄 License\n\nMIT License - see [LICENSE](LICENSE) file for details.\n\n---\n\n## 🇨🇳 简体中文\n\n### 🎉 项目介绍\n\n**SnippetVault MCP** 是一个轻量级的 [Model Context Protocol (MCP)](https://modelcontextprotocol.io) 服务器，让 Claude、Cursor 等 AI 助手能够智能地管理和检索您的代码片段。\n\n**为什么选择 SnippetVault？**\n- 🔍 **语义搜索** - 通过含义而不仅是关键词查找代码\n- 🤖 **AI原生设计** - 专为兼容 MCP 的 AI 助手设计\n- 🏷️ **智能标签** - 自动检测编程语言和智能标记\n- ⚡ **轻量级** - 依赖最少，启动快速\n- 🔒 **本地优先** - 您的代码保存在本地\n\n### ✨ 核心特性\n\n| 特性 | 描述 |\n|------|-------------|\n| 💾 **保存片段** | 存储带标题、描述和标签的代码 |\n| 🔍 **语义搜索** | 用自然语言查询查找片段 |\n| 🏷️ **智能标记** | 自动检测编程语言 |\n| 📊 **使用分析** | 追踪片段被检索的频率 |\n| 🎯 **筛选排序** | 按语言、标签或使用次数筛选 |\n\n### 🚀 快速开始\n\n#### 环境要求\n- Python 3.9+\n- ~100MB 磁盘空间（用于嵌入模型）\n\n#### 安装\n\n```bash\npip install snippetvault-mcp\n```\n\n#### 配置 Claude Desktop\n\n添加到 `claude_desktop_config.json`：\n\n```json\n{\n  \"mcpServers\": {\n    \"snippetvault\": {\n      \"command\": \"python\",\n      \"args\": [\"-m\", \"snippetvault_mcp\"],\n      \"env\": {\n        \"SNIPPETVAULT_DATA_DIR\": \"~/.snippetvault\"\n      }\n    }\n  }\n}\n```\n\n**配置文件位置：**\n- macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`\n- Windows: `%APPDATA%/Claude/claude_desktop_config.json`\n- Linux: `~/.config/Claude/claude_desktop_config.json`\n\n#### 配置 Cursor\n\n添加到 Cursor 的 MCP 设置：\n\n```json\n{\n  \"mcpServers\": {\n    \"snippetvault\": {\n      \"command\": \"python\",\n      \"args\": [\"-m\", \"snippetvault_mcp\"]\n    }\n  }\n}\n```\n\n### 📖 使用指南\n\n配置完成后，您可以这样问 Claude/Cursor：\n\n**保存片段：**\n```\n\"保存这个 Python 快速排序函数：[粘贴代码]\"\n```\n\n**搜索片段：**\n```\n\"查找我的排序算法代码\"\n\"搜索数据库连接示例\"\n```\n\n**列示片段：**\n```\n\"显示我所有的 Python 片段\"\n\"列出标记为 'api' 的片段\"\n```\n\n**获取统计：**\n```\n\"我有多少个片段？\"\n\"显示我的片段库统计\"\n```\n\n### 🔧 可用工具\n\n| 工具 | 描述 |\n|------|-------------|\n| `save_snippet` | 保存新代码片段 |\n| `get_snippet` | 通过 ID 检索片段 |\n| `search_snippets` | 语义搜索片段 |\n| `list_snippets` | 列出所有片段（支持筛选）|\n| `delete_snippet` | 删除片段 |\n| `update_snippet` | 更新现有片段 |\n| `list_tags` | 列出所有唯一标签 |\n| `get_stats` | 获取库统计信息 |\n\n### 💡 设计理念\n\nSnippetVault 遵循以下设计原则：\n\n1. **AI优先** - 从一开始就专为 AI 助手集成设计\n2. **开发者友好** - 自然语言交互，无需复杂查询\n3. **隐私优先** - 所有数据本地保存，无云依赖\n4. **可扩展** - 简洁架构，易于定制\n\n### 📦 开发指南\n\n```bash\n# 克隆仓库\ngit clone https://github.com/gitstq/snippetvault-mcp.git\ncd snippetvault-mcp\n\n# 开发模式安装\npip install -e \".[dev]\"\n\n# 运行测试\npytest\n\n# 格式化代码\nblack src/\nruff check src/\n```\n\n### 🤝 贡献指南\n\n欢迎贡献！请遵循：\n\n1. Fork 本仓库\n2. 创建功能分支 (`git checkout -b feature/新功能`)\n3. 提交更改 (`git commit -m 'feat: 添加新功能'`)\n4. 推送到分支 (`git push origin feature/新功能`)\n5. 提交 Pull Request\n\n### 📄 开源协议\n\nMIT 许可证 - 详见 [LICENSE](LICENSE) 文件。\n\n---\n\n## 🇹","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitstq%2Fsnippetvault-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitstq%2Fsnippetvault-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitstq%2Fsnippetvault-mcp/lists"}