CaptainCrouton89/alaria-wiki-mcp
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.
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:
- Process content and break it into sections
- Generate embeddings for each section
- Store both the content and embeddings in a database
- 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:
- Update the
package.jsonwith your project details - Modify the API integration in
src/to use your preferred embedding service - 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 storepath: Unique identifier path for the contenttype(optional): Content type (e.g., 'markdown')source(optional): Source of the contentparentPath(optional): Path of the parent content (if applicable)
search-content
Searches for content using vector similarity.
Parameters:
query: The search querymaxMatches(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 contentcontent: 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:
- OpenAI Embeddings API
- Hugging Face embedding models
- Chroma, Pinecone, or other vector databases
- Vercel AI SDK
License
MIT
Recommend MCP Servers 💡
ntfy-mcp
Welcome to ntfy-mcp, the MCP server that keeps you caffeinated and informed! 🚀☕️ This handy little server integrates with the Model Context Protocol to send you delightful ntfy notifications whenever your AI assistant completes a task. Because let's face it - you deserve that tea break while your code writes itself.
@drew-goddyn/buildkite-mcp
An MCP server that integrates with Buildkite to retrieve and manage information about organizations, pipelines, builds, and jobs.
jobspy-mcp-server
An MCP server enabling AI assistants to search jobs across platforms like Indeed and LinkedIn using JobSpy
openai-gpt-image-mcp
A Model Context Protocol (MCP) tool server for OpenAI's GPT-4o/gpt-image-1 image generation and editing APIs.
falahgs/Brave-Gemini-Research-MCP-Server
An MCP server providing web search via Brave Search API and research paper analysis using Google's Gemini model.
@powerdrillai/powerdrill-mcp
A Model Context Protocol (MCP) server that enables interaction with Powerdrill datasets using User ID and Project API Key.