MCP Power is a semantic knowledge search server that transforms document collections into searchable knowledge bases using FAISS vector embeddings and the Model Context Protocol (MCP).
Key Capabilities:
Semantic Search: Query datasets using natural language with AI-powered semantic understanding beyond keyword matching, delivering sub-500ms response times with relevance scoring
Document Processing: Automatically index .txt, .md, and .pdf files by splitting them into intelligent semantic chunks and generating vector embeddings
Dataset Management: Create, monitor, and delete multiple knowledge bases through a drag-and-drop web console or REST API
MCP Integration: Seamlessly works with any MCP-compatible client including Claude Desktop, VS Code Copilot, and Cherry Studio
Tool Operations:
knowledge.search: Execute semantic searches with configurable result count (topK parameter)knowledge.listDatasets: Retrieve all available datasets with metadata, chunk counts, and readiness status
Web Interface: Modern console at http://127.0.0.1:4173 for easy management and real-time monitoring
Zero Configuration: One-click launcher automatically sets up the Python environment, dependencies, and starts the server across Linux, macOS, and Windows
Use Cases: Build searchable documentation sites, create knowledge bases for chatbots, search research paper collections, query personal notes, and power AI assistants with custom domain knowledge.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Power - Knowledge Search Serversearch for documentation on FAISS vector indexing best practices"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ MCPower
Semantic Knowledge Search, Simplified
Transform your documents into searchable knowledge bases with FAISS vector embeddings
๐ Quick Start โข ๐ Documentation โข ๐ Report Bug โข ๐ก Request Feature
โญ Spread the Word
If you find MCPower useful, help us grow the community!
โญ Star this repo to show your support!
Share MCPower: Twitter/X โข LinkedIn โข Reddit
๐ Project Status
โ Phase 1-5: Complete (All user stories implemented)
๐ง Phase 6: Polish & documentation (in progress)
โจ What is MCPower?
MCPower is a Model Context Protocol (MCP) server that provides powerful semantic search over your document collections. Drop in any folder of .txt or .md files, and get instant AI-powered search capabilities through a beautiful web interface or programmatic API.
Perfect for:
๐ Documentation sites
๐๏ธ Knowledge bases
๐ฌ Chatbot context
๐ Research papers
๐ Note collections
๐ฏ Features at a Glance
๐ฑ๏ธ Drag & Drop Interface
Just drop folders into the web console to create searchable datasets. No CLI commands needed!
โก Lightning Fast
FAISS-powered vector search with <500ms response times. Search thousands of documents instantly.
๐ง Semantic Understanding
Uses sentence transformers for intelligent matching beyond keyword search.
๐ MCP Compatible
Works with Claude Desktop, VS Code, Cherry Studio, and any MCP client.
๐ฆ Zero Config
One-click launcher automatically sets up everything. Just run ./launch.sh.
๐จ Beautiful UI
Modern, responsive web console with real-time stats and visual feedback.
๐ Quick Start
# Clone the repository
git clone https://github.com/wspotter/mcpower.git
cd mcpower
# Run the launcher - it does everything!
./launch.shThe web console opens automatically at http://127.0.0.1:4173 ๐
# Clone the repository
git clone https://github.com/wspotter/mcpower.git
cd mcpower
# Double-click launch.bat or run:
launch.batYour browser opens automatically to http://127.0.0.1:4173 ๐
๐ธ What You'll See
โจ Features
Semantic Search: Search knowledge datasets using natural language queries
Interactive Web Console: Manage datasets with drag-and-drop interface
Multiple Datasets: Manage and search across multiple knowledge bases
MCP Compatible: Works with any MCP client (VS Code, Cherry Studio, etc.)
Fast & Reliable: FAISS-powered vector search with <500ms p95 latency
Graceful Degradation: Continues working even with invalid datasets
Comprehensive Logging: Structured JSON logs with detailed diagnostics
๐๏ธ How It Works
graph TD
A[๐ Your Documents] -->|Python Indexer| B[๐งฎ Embeddings]
B -->|FAISS| C[๐พ Vector Database]
C -->|TypeScript MCP Server| D[๐ MCP Protocol]
D --> E1[VS Code Copilot]
D --> E2[Cherry Studio]
D --> E3[Any MCP Client]
style A fill:#e3f2fd
style B fill:#fff3e0
style C fill:#f3e5f5
style D fill:#e8f5e9
style E1 fill:#fce4ec
style E2 fill:#fce4ec
style E3 fill:#fce4ecThe Magic Behind MCPower
๐ Document Processing
Python reads your documents (txt, md, pdf)
Splits them into semantic chunks
Generates embeddings using
sentence-transformers
โก Fast Vector Search
FAISS indexes embeddings for lightning-fast similarity search
Sub-500ms query latency even on large datasets
Efficient memory usage with optimized index structures
๐ MCP Integration
TypeScript server exposes MCP tools
Clients send queries via stdio protocol
Python bridge handles FAISS operations
Results returned as JSON with relevance scores
โ๏ธ Installation
Prerequisites
Node.js 18+ and npm
Python 3.10+
Git
Automatic Setup (Recommended)
git clone https://github.com/wspotter/mcpower.git
cd mcpower
./launch.sh # Does everything automatically!The launcher will:
โ Create virtual environment
โ Install Python dependencies
โ Install Node.js dependencies
โ Configure environment variables
โ Start the web console
โ Open your browser
Manual Setup
1. Clone the repository
git clone https://github.com/wspotter/mcpower.git
cd mcpower2. Install Node.js dependencies
npm install3. Create Python virtual environment
python3 -m venv .venv4. Install Python dependencies
.venv/bin/pip install typer faiss-cpu sentence-transformers5. Configure environment
cat > .env << EOF
MCPOWER_PYTHON=$(pwd)/.venv/bin/python
EOF6. Build and run
npm run build
npm run dev -- --datasets ./datasetsโ๏ธ Configuration
Command Line Options
npm run dev -- [options]Options:
--datasets <path>: Path to datasets directory (default:./datasets)--log-level <level>: Log level: debug, info, warn, error (default:info)--version: Show version information
Environment Variables
Create a .env file in the project root:
# Datasets directory path
DATASETS_PATH=./datasets
# Log level (debug, info, warn, error)
LOG_LEVEL=info๐ Dataset Management
Using the Web Console
The easiest way to create datasets is through the web console:
Start the console:
./launch.shAdd a dataset:
Click Browse to open directory picker
Or drag & drop a folder into the input field
Or type the path manually
Submit: Click "Create Dataset"
Monitor: Watch real-time indexing progress
Dataset Structure
Each dataset has three components stored in datasets/<name>/:
datasets/
โโโ my-docs/
โโโ config.json # Dataset configuration
โโโ index.faiss # FAISS vector index
โโโ metadata.json # Chunk metadata and textManual Dataset Creation
# Index a directory of documents
.venv/bin/python python/src/index.py index \
--source-path ./my-documents \
--dataset-name my-docs \
--output-dir ./datasets/my-docs
# Supported file types: .txt, .md, .pdfConfiguration options:
--chunk-size 512 # Characters per chunk
--chunk-overlap 50 # Overlap between chunks
--model sentence-transformers/all-MiniLM-L6-v2Dataset Operations
# List all datasets
GET /api/datasets
# Get dataset details
GET /api/datasets/:name
# Delete dataset
DELETE /api/datasets/:name
# Create dataset (via web console or API)
POST /api/datasets
{
"name": "my-docs",
"sourcePath": "/absolute/path/to/documents"
}๐ MCP Integration
MCPower works with any MCP-compatible client. Here's how to connect it:
VS Code Copilot
Add to your VS Code settings.json:
{
"github.copilot.chat.codeGeneration.instructions": [
{
"text": "Use the mcpower MCP server for knowledge search"
}
],
"mcp.servers": {
"mcpower": {
"command": "node",
"args": ["/absolute/path/to/mcpower/dist/cli.js", "--datasets", "./datasets"],
"env": {
"MCPOWER_PYTHON": "/absolute/path/to/mcpower/.venv/bin/python"
}
}
}
}Cherry Studio
Add to Cherry Studio's MCP configuration:
{
"mcpServers": {
"mcpower": {
"command": "node",
"args": ["/absolute/path/to/mcpower/dist/cli.js", "--datasets", "./datasets"]
}
}
}Available Tools
๐ knowledge.search
Search your knowledge bases using natural language.
{
dataset: string; // Dataset name (required)
query: string; // Your search query (required)
topK?: number; // Number of results (default: 5)
}Example:
{
"tool": "knowledge.search",
"arguments": {
"dataset": "my-docs",
"query": "How do I configure authentication?",
"topK": 3
}
}Response:
{
"results": [
{
"score": 0.89,
"title": "Authentication Guide",
"path": "docs/auth.md",
"snippet": "To configure authentication, set the AUTH_ENABLED=true..."
}
]
}๐ knowledge.listDatasets
List all available datasets.
{} // No parametersResponse:
{
"datasets": [
{
"id": "my-docs",
"name": "My Documentation",
"description": "Internal docs",
"chunkCount": 1264,
"defaultTopK": 5
}
],
"metadata": {
"total": 1,
"ready": 1,
"errors": 0
}
}๐ ๏ธ Development
Project Structure
mcpower/
โโโ src/ # TypeScript MCP server
โ โโโ cli.ts # Entry point
โ โโโ server.ts # MCP protocol handler
โ โโโ bridge/ # Python FAISS bridge
โ โโโ config/ # Dataset registry
โ โโโ store/ # Knowledge store cache
โ โโโ tools/ # MCP tool implementations
โโโ python/src/ # Python indexer & search
โ โโโ index.py # CLI for indexing
โ โโโ search.py # FAISS search operations
โโโ webapp/ # Web console
โ โโโ index.html # SPA interface
โ โโโ app.js # Frontend logic
โ โโโ styles.css # Styling
โโโ tests/ # Test suites
โ โโโ unit/ # Unit tests
โ โโโ integration/ # Integration tests
โโโ datasets/ # Your knowledge bases
โโโ sample-docs/ # Example datasetDevelopment Scripts
# Development mode (auto-reload)
npm run dev -- --datasets ./datasets
# Build TypeScript
npm run build
# Start web console
npm run web
# Run tests
npm test
# Run with coverage
npm run test:coverage
# Type checking & linting
npm run lintCreating a New Tool
Define the tool in
src/tools/yourTool.ts:
export const yourTool: Tool = {
name: "knowledge.yourTool",
description: "What your tool does",
inputSchema: {
type: "object",
properties: {
param: { type: "string", description: "Parameter description" }
},
required: ["param"]
}
};Implement the handler in
src/tools/handlers/yourTool.tsRegister it in
src/server.tsAdd tests in
tests/unit/tools/yourTool.test.ts
๐งช Testing
Quick Test
# Run all 86 tests
npm test
# Run with coverage report
npm run test:coverageTest Coverage
โ 86 tests passing across:
๐ 18 search edge cases (empty queries, special chars, large results)
๐ ๏ธ 15 search tool validations
๐ 11 dataset registry operations
๐ 9 listDatasets tool tests
๐ 9 startup integration tests
๐พ 8 knowledge store caching
โก 6 performance benchmarks (<500ms p95)
๐ 5+5 integration tests (search + listDatasets)
Integration Testing
# Test with real datasets
./test-search.sh
# Test web console API
./test-web.sh๐ Troubleshooting
Error: Dataset not found: your-dataset
Solutions:
โ Verify dataset exists in
datasets/directoryโ Check
config.jsonhas correct name fieldโ Restart server to reload dataset registry
โ Use web console to verify dataset list
Error: Python bridge command failed
Solutions:
โ Verify Python 3.10+ is installed:
python3 --versionโ Check virtual environment:
.venv/bin/python --versionโ Reinstall dependencies:
.venv/bin/pip install -r python/requirements.txtโ Test FAISS:
.venv/bin/python -c "import faiss; print('OK')"โ Check .env file has correct
MCPOWER_PYTHONpath
Issue: Queries taking >500ms
Solutions:
โ Check dataset size (>10k chunks may need optimization)
โ Verify FAISS index is properly trained
โ Reduce
topKparameter (try 3-5 instead of 10+)โ Consider using faster embedding model
โ Use GPU-accelerated FAISS for large datasets
Error: ERR_CONNECTION_REFUSED
Solutions:
โ Ensure web server is running:
npm run webโ Check port 4173 isn't blocked by firewall
โ Try accessing
http://127.0.0.1:4173directlyโ Check console logs for startup errors
Get detailed diagnostics:
npm run dev -- --log-level=debug --datasets ./datasetsThis shows:
Dataset loading details
Python bridge communication
FAISS index operations
Search query execution
Error stack traces
๐ค Contributing
๐จ We're actively looking for contributors! Check out our good first issues and help wanted labels.
We welcome contributions! Here's how to get started:
Quick Start
# Fork and clone
git clone https://github.com/YOUR_USERNAME/mcpower.git
cd mcpower
# Create feature branch
git checkout -b feature/amazing-feature
# Install dependencies
npm install
.venv/bin/pip install -r python/requirements.txt
# Make changes and test
npm run build
npm test
# Commit with clear message
git commit -m "feat: add amazing feature"
# Push and create PR
git push origin feature/amazing-feature๐ฅ Areas We Need Help
We're especially looking for contributors in these areas:
๐จ UI/UX: Improve web console design
๐ Documentation: Tutorials, examples, guides
๐งช Testing: More test coverage, edge cases
๐ Performance: Optimization, caching strategies
๐ Integrations: New MCP clients, data sources
๐ Bug Fixes: See issues
Code Guidelines
Write tests for new features
Follow TypeScript/Python best practices
Update documentation for API changes
Use conventional commit messages
Keep PRs focused and atomic
๐ License
MIT License - see LICENSE for details
๐ Acknowledgments
Built with amazing open-source tools:
FAISS - Vector similarity search by Facebook Research
sentence-transformers - State-of-the-art text embeddings
MCP - Model Context Protocol by Anthropic
TypeScript - Type-safe JavaScript
Express - Fast web framework
โ Getting Help
Need assistance? We're here to help!
๐ Bug Reports: Open an issue
๐ก Feature Requests: Request a feature
โ Questions: Search existing issues or open a new one
๐ Documentation: Check our Quick Start Guide
โญ Star this repo if you find it useful!
Made with โค๏ธ by the MCPower team
๐ Report Bug โข โจ Request Feature โข ๐ Documentation