Cover image
Try Now
2025-04-14

3 years

Works with Finder

0

Github Watches

0

Github Forks

0

Github Stars

MCP Embedding Storage Server Boilerplate

A starter template for building an MCP server that stores and retrieves information using vector embeddings. This boilerplate provides the foundation for creating your own embedding-based knowledge store that can integrate with Claude or other MCP-compatible AI assistants.

Purpose

This boilerplate helps you quickly start building:

  • A personal knowledge base that remembers information for your AI assistant
  • A semantic search interface for your documents or knowledge
  • A vector store integration for AI assistants

Features

  • Store content with automatically generated embeddings
  • Search content using semantic similarity
  • Access content through both tools and resources
  • Use pre-defined prompts for common operations

How It Works

This MCP server template connects to vector embedding APIs to:

  1. Process content and break it into sections
  2. Generate embeddings for each section
  3. Store both the content and embeddings in a database
  4. Enable semantic search using vector similarity

When you search, the system finds the most relevant sections of stored content based on the semantic similarity of your query to the stored embeddings.

Getting Started

# Clone the boilerplate
git clone https://github.com/yourusername/mcp-embedding-storage-boilerplate.git
cd mcp-embedding-storage-boilerplate

# Install dependencies
pnpm install

# Build the project
pnpm run build

# Start the server
pnpm start

Configuring for Development

After cloning and building, you'll need to:

  1. Update the package.json with your project details
  2. Modify the API integration in src/ to use your preferred embedding service
  3. Customize the tools and resources in src/index.ts

Usage with Claude for Desktop

Add the following configuration to your claude_desktop_config.json file:

{
  "mcpServers": {
    "your-embedding-storage": {
      "command": "node /path/to/your/dist/index.js"
    }
  }
}

Then restart Claude for Desktop to connect to the server.

Implementing Tools

store-content

Stores content with automatically generated embeddings.

Parameters:

  • content: The content to store
  • path: Unique identifier path for the content
  • type (optional): Content type (e.g., 'markdown')
  • source (optional): Source of the content
  • parentPath (optional): Path of the parent content (if applicable)

search-content

Searches for content using vector similarity.

Parameters:

  • query: The search query
  • maxMatches (optional): Maximum number of matches to return

Implementing Resources

search://{query}

Resource template for searching content.

Example usage: search://machine learning basics

Implementing Prompts

store-new-content

A prompt to help store new content with embeddings.

Parameters:

  • path: Unique identifier path for the content
  • content: The content to store

search-knowledge

A prompt to search for knowledge.

Parameters:

  • query: The search query

Integration Options

You can integrate this boilerplate with various embedding APIs and vector databases:

  1. OpenAI Embeddings API
  2. Hugging Face embedding models
  3. Chroma, Pinecone, or other vector databases
  4. Vercel AI SDK

License

MIT

相关推荐

  • av
  • Ejecute sin esfuerzo LLM Backends, API, frontends y servicios con un solo comando.

  • 1Panel-dev
  • 🔥 1Panel proporciona una interfaz web intuitiva y un servidor MCP para administrar sitios web, archivos, contenedores, bases de datos y LLM en un servidor de Linux.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 llM 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Resumen de los mejores recursos del mundo.

  • rulego
  • ⛓️Rulego es un marco de motor de regla de orquestación de componentes de alta generación de alto rendimiento, de alto rendimiento y de alto rendimiento para GO.

  • Byaidu
  • Traducción de papel científico en PDF con formatos preservados - 基于 Ai 完整保留排版的 PDF 文档全文双语翻译 , 支持 支持 支持 支持 支持 支持 支持 支持 支持 支持 支持 支持 等服务 等服务 等服务 提供 提供 提供 提供 提供 提供 提供 提供 提供 提供 提供 提供 cli/mcp/docker/zotero

  • sigoden
  • Cree fácilmente herramientas y agentes de LLM utilizando funciones Plain Bash/JavaScript/Python.

  • hkr04
  • SDK liviano C ++ MCP (Protocolo de contexto del modelo)

  • RockChinQ
  • 😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 Qq / 微信(企业微信、个人微信) / 飞书 / 钉钉 / Discord / Telegram / Slack 等平台 | 支持 Chatgpt 、 Deepseek 、 DiFy 、 Claude 、 Gemini 、 Xai 、 PPIO 、 Ollama 、 LM Studio 、阿里云百炼、火山方舟、 Siliconflow 、 Qwen 、 Moonshot 、 Chatglm 、 SillyTraven 、 MCP 等 LLM 的机器人 / Agente | Plataforma de bots de mensajería instantánea basada en LLM, admite Discord, Telegram, WeChat, Lark, Dingtalk, QQ, Slack

  • dmayboroda
  • Trapo conversacional local con contenedores configurables

  • modelscope
  • Iniciar aplicaciones de múltiples agentes empoderadas con Building LLM de manera más fácil.

    Reviews

    1.5 (4)
    Avatar
    user_oQANG043
    2025-04-24

    I've been using alaria-wiki-mcp by CaptainCrouton89 for a while now, and it's been a game-changer. The tool is intuitive and easy to navigate, making my workflow so much smoother. Highly recommend it for anyone needing an efficient and reliable MCP application!

    Avatar
    user_cNjHotdI
    2025-04-24

    As a dedicated user of alaria-wiki-mcp, I must say this application developed by CaptainCrouton89 is outstanding. It offers a seamless experience with comprehensive resources. The ease of navigation and clarity in its design make it a go-to tool. For anyone looking to dive into detailed information, I highly recommend giving it a try.

    Avatar
    user_8nxHbUnh
    2025-04-24

    As a dedicated user of alaria-wiki-mcp, I find this product incredibly useful. CaptainCrouton89 did an outstanding job in creating a comprehensive and user-friendly platform. The navigation is intuitive, and the welcome information provides a great start. Highly recommended for anyone looking to explore this tool!

    Avatar
    user_XkSZ7Flg
    2025-04-24

    Alaria-wiki-mcp by CaptainCrouton89 is a fantastic resource! It's incredibly user-friendly, making it easy to find exactly what you're looking for. The interface is clean and intuitive, and the content is both thorough and well-organized. Whether you're a beginner or an advanced user, you'll find valuable information here. Highly recommended!