Sekha MCP Server

Sekha MCP Server

This MCP server exposes Sekha memory tools (store, search, update, etc.) to any MCP-compatible client, enabling persistent conversation memory across Claude Desktop, Claude Code, and other applications.

Category
Visit Server

README

Sekha MCP Server

Model Context Protocol Server for Sekha Memory

License: AGPL v3 CI Status codecov Python PyPI


šŸ†• 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 label
  • messages (array) - Message array (supports images in v0.2.0!)
  • folder (string, optional) - Organization folder
  • importance (int, optional) - 1-10 scale

memory_search

Search conversations semantically.

Parameters:

  • query (string) - Search query
  • limit (int) - Max results
  • folder (string, optional) - Search within folder

memory_get_context

Assemble optimal context for LLM.

Parameters:

  • query (string) - Context query
  • context_budget (int) - Token limit
  • folders (array, optional) - Limit to specific folders

memory_update

Update conversation metadata.

Parameters:

  • conversation_id (string) - Conversation UUID
  • label (string, optional) - New label
  • folder (string, optional) - New folder
  • importance (int, optional) - New importance (1-10)
  • status (string, optional) - active/archived

memory_prune

Get cleanup recommendations.

Parameters:

  • min_age_days (int, optional) - Minimum age
  • max_importance (int, optional) - Max importance to consider
  • limit (int, optional) - Max suggestions

memory_export

Export conversations.

Parameters:

  • format (string) - json or markdown
  • folder (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

Full API Reference


šŸ—ļø 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


šŸ“ Changelog

See CHANGELOG.md for full release history.


šŸ“ License

AGPL-3.0 - License Details

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured