Model Context Protocol server for Project Sekha - Persistent AI Memory Controller (v2.0 multi-provider compatible)
Project description
Sekha MCP Server
Model Context Protocol Server for Sekha Memory
๐ v0.2.0 Release - Multi-Provider Support
Sekha MCP v0.2.0 is now compatible with the new Sekha v0.2.0 multi-provider architecture!
What's New:
- โ Works with Sekha v0.2.0 controller's multi-provider routing
- โ Automatic provider fallback (Ollama, OpenAI, Anthropic, etc.)
- โ Vision support (GPT-4o, Kimi 2.5) - just include images!
- โ Cost-aware model selection
- โ Multi-dimensional embeddings (per-dimension ChromaDB collections)
- โ Claude Desktop & Claude Code support - memory in both apps!
- โ No API changes - fully backward compatible!
What is Sekha MCP?
MCP (Model Context Protocol) server that exposes Sekha memory tools to any MCP-compatible client:
- โ Claude Desktop - Anthropic's desktop app
- โ Claude Code - VS Code extension (works with Ollama, Anthropic, or any provider)
- โ Any MCP client - Standard protocol implementation
Supported Tools:
- โ
memory_store- Save conversations - โ
memory_search- Semantic search - โ
memory_get_context- Retrieve relevant context - โ
memory_update- Update conversation metadata - โ
memory_prune- Get cleanup recommendations - โ
memory_export- Export your data - โ
memory_stats- View usage statistics
Total: 7 MCP tools
๐ Documentation
Complete guide: docs.sekha.dev/integrations/mcp
๐ Quick Start
1. Install Sekha
# Deploy Sekha v0.2.0 stack with multi-provider support
git clone https://github.com/sekha-ai/sekha-docker.git
cd sekha-docker
docker compose -f docker/docker-compose.prod.yml up -d
2. Configure Your MCP Client
Option A: Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"sekha": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--network=host",
"ghcr.io/sekha-ai/sekha-mcp:v0.2.0"
],
"env": {
"CONTROLLER_URL": "http://localhost:8080",
"CONTROLLER_API_KEY": "your-mcp-api-key-here"
}
}
}
}
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
Option B: Claude Code (VS Code Extension)
Add to VS Code settings.json or workspace config:
{
"mcpServers": {
"sekha": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--network=host",
"ghcr.io/sekha-ai/sekha-mcp:v0.2.0"
],
"env": {
"CONTROLLER_URL": "http://localhost:8080",
"CONTROLLER_API_KEY": "your-mcp-api-key-here"
}
}
}
}
Claude Code Configuration:
Claude Code lets you choose your LLM provider separately from memory:
{
// Sekha provides memory (via MCP)
"mcpServers": {
"sekha": { /* config above */ }
},
// Configure your LLM provider (Claude Code supports multiple)
"claudeCode.apiProvider": "ollama", // or "anthropic"
"claudeCode.ollamaUrl": "http://localhost:11434",
"claudeCode.ollamaModel": "llama3.1:8b"
}
This means:
- Use Ollama (or other LLM) locally for generation (fast, private, free)
- Use Sekha MCP for memory (persistent across sessions)
- Best of both worlds!
3. Restart Your Client
- Claude Desktop: Restart the app
- Claude Code: Reload VS Code window (
Cmd+Shift+Pโ "Reload Window")
Sekha memory tools will now appear!
See setup guides:
๐ฏ Use Cases
Claude Desktop - Interactive Conversations
- Full-featured desktop app with Sekha memory
- Perfect for brainstorming, research, general chat
- Uses Anthropic's Claude models
Claude Code - Development Workflow Examples
- VS Code extension with code-aware features
- Use with Ollama for fast, local, private coding
- Or use with Anthropic/OpenAI for powerful cloud models
- Sekha memory works with any provider you configure
API Integration - Programmatic Access
- Use sekha-proxy for OpenAI-compatible API
- Multi-provider routing via LLM bridge
- Same memory as Claude apps
๐ง Development
# Clone
git clone https://github.com/sekha-ai/sekha-mcp.git
cd sekha-mcp
# Install
pip install -e .
# Run locally
python -m sekha_mcp
# Test
pytest
๐ MCP Tools Reference
memory_store
Store a conversation in Sekha.
Parameters:
label(string) - Conversation labelmessages(array) - Message array (supports images in v0.2.0!)folder(string, optional) - Organization folderimportance(int, optional) - 1-10 scale
memory_search
Search conversations semantically.
Parameters:
query(string) - Search querylimit(int) - Max resultsfolder(string, optional) - Search within folder
memory_get_context
Assemble optimal context for LLM.
Parameters:
query(string) - Context querycontext_budget(int) - Token limitfolders(array, optional) - Limit to specific folders
memory_update
Update conversation metadata.
Parameters:
conversation_id(string) - Conversation UUIDlabel(string, optional) - New labelfolder(string, optional) - New folderimportance(int, optional) - New importance (1-10)status(string, optional) - active/archived
memory_prune
Get cleanup recommendations.
Parameters:
min_age_days(int, optional) - Minimum agemax_importance(int, optional) - Max importance to considerlimit(int, optional) - Max suggestions
memory_export
Export conversations.
Parameters:
format(string) - json or markdownfolder(string, optional) - Export specific folder
memory_stats
Get memory usage statistics.
Parameters: None
Returns:
- Total conversations
- Total messages
- Storage usage
- Folder breakdown
- Provider stats (v0.2.0) - which models are being used
๐๏ธ Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ MCP Clients โ
โ - Claude Desktop (Anthropic) โ
โ - Claude Code (Ollama/Anthropic/etc.) โ
โ - Any MCP-compatible client โ
โโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโ
โ Sekha MCP โ โ This repository
โ Server โ
โโโโโโโโโโฌโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโ
โ Controller โ โ Memory APIs
โ (Rust) โ
โโโโโโโโโโฌโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโ
โ ChromaDB โ โ Vector storage
โ Redis โ โ Cache
โโโโโโโโโโโโโโโโโโ
Separate from LLM routing:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ API Clients โ Proxy โ Bridge โ Providers โ
โ (OpenAI SDK compatible) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Key Points:
- MCP provides memory tools only
- Claude Desktop/Code handle their own LLM connections
- Controller stores all conversations regardless of source
- Same memory accessible from Claude apps and API
๐ Links
- Main Repo: sekha-controller
- Proxy (API): sekha-proxy
- Docker Deploy: sekha-docker
- Docs: docs.sekha.dev
- Website: sekha.dev
- Discord: discord.gg/sekha
๐ Changelog
See CHANGELOG.md for full release history.
๐ License
AGPL-3.0 - License Details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sekha_mcp-0.2.0.tar.gz.
File metadata
- Download URL: sekha_mcp-0.2.0.tar.gz
- Upload date:
- Size: 88.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4379bc874e4c1cd57767dc64c0a29698d1b3af58a52e6551ef4849fa87a0eb17
|
|
| MD5 |
a9e7021d39022e1a2249d1bcf440739f
|
|
| BLAKE2b-256 |
19c1adc8e3b3c4baafbbd3e6e967341e4a2c92f7846837666e6b1cfb9f2816dd
|
Provenance
The following attestation bundles were made for sekha_mcp-0.2.0.tar.gz:
Publisher:
pypi-release.yml on sekha-ai/sekha-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sekha_mcp-0.2.0.tar.gz -
Subject digest:
4379bc874e4c1cd57767dc64c0a29698d1b3af58a52e6551ef4849fa87a0eb17 - Sigstore transparency entry: 955869888
- Sigstore integration time:
-
Permalink:
sekha-ai/sekha-mcp@2804e1bb377e83ea9042b641aad849d0a7c10154 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/sekha-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-release.yml@2804e1bb377e83ea9042b641aad849d0a7c10154 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sekha_mcp-0.2.0-py3-none-any.whl.
File metadata
- Download URL: sekha_mcp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 33.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c62dfffd5218e5b7d8e97f8d2ff02ffd8fedf30e838e0e7de4e67f019637754
|
|
| MD5 |
ca6091035cd18a33a78ad90e2d978158
|
|
| BLAKE2b-256 |
9b1c5402b3c07c826b0c87cd7546b5f2b5536304af1169f2f5a9541cfa63bec6
|
Provenance
The following attestation bundles were made for sekha_mcp-0.2.0-py3-none-any.whl:
Publisher:
pypi-release.yml on sekha-ai/sekha-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sekha_mcp-0.2.0-py3-none-any.whl -
Subject digest:
0c62dfffd5218e5b7d8e97f8d2ff02ffd8fedf30e838e0e7de4e67f019637754 - Sigstore transparency entry: 955869892
- Sigstore integration time:
-
Permalink:
sekha-ai/sekha-mcp@2804e1bb377e83ea9042b641aad849d0a7c10154 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/sekha-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-release.yml@2804e1bb377e83ea9042b641aad849d0a7c10154 -
Trigger Event:
push
-
Statement type: