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
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • Byaidu
  • PDF科学纸翻译带有保留格式的pdf -基于ai完整保留排版的pdf文档全文双语翻译

  • rulego
  • ⛓️Rulego是一种轻巧,高性能,嵌入式,下一代组件编排规则引擎框架。

  • sigoden
  • 使用普通的bash/javascript/python函数轻松创建LLM工具和代理。

  • hkr04
  • 轻巧的C ++ MCP(模型上下文协议)SDK

  • RockChinQ
  • 😎简单易用、🧩丰富生态 -大模型原生即时通信机器人平台| 适配QQ / 微信(企业微信、个人微信) /飞书 /钉钉 / discord / telegram / slack等平台| 支持chatgpt,deepseek,dify,claude,基于LLM的即时消息机器人平台,支持Discord,Telegram,微信,Lark,Dingtalk,QQ,Slack

  • dmayboroda
  • 带有可配置容器的本地对话抹布

  • modelscope
  • 开始以更轻松的方式开始构建具有LLM授权的多代理应用程序。

    Reviews

    3 (3)
    Avatar
    user_Eq15OwAv
    2025-04-24

    I recently started using the mcp-boilerplate created by CaptainCrouton89, and it has significantly streamlined my development process. The boilerplate is well-structured, easy to navigate, and perfect for setting up new projects quickly. The welcoming information and documentation provided make it extremely user-friendly, even for beginners. I highly recommend it to anyone looking for a solid foundation for their projects.

    Avatar
    user_Gf897bei
    2025-04-24

    I've been using the mcp-boilerplate by CaptainCrouton89 for a few weeks now, and I must say it's an incredibly useful tool for kickstarting my projects. The setup is straightforward, and it saves me a ton of time by providing a robust foundation to build upon. If you're looking for a reliable boilerplate, I highly recommend giving this one a try!

    Avatar
    user_3lk3xaRD
    2025-04-24

    I have been using the mcp-boilerplate by CaptainCrouton89 and it has significantly streamlined my development process. The structure and predefined setups are intuitive, saving both time and effort. The comprehensive welcome information is a great touch for getting started. Highly recommended for any developer looking for a solid foundation!