STRATA
by ssundxr
README.md
# š STRATA ā Universal Context Bridge
[](https://modelcontextprotocol.io)
[](https://python.org)
[](https://supabase.com)
[](LICENSE)
**STRATA** is a high-performance [Model Context Protocol (MCP)](https://modelcontextprotocol.io) server that serves as a **Universal Context Bridge** for AI assistants and LLM agents (Claude Desktop, Cursor, Continue.dev, ChatGPT, etc.).
It gives AI models persistent memory across conversations and coding sessions, backed by **Supabase PostgreSQL**, full-text indexing, and **pgvector** semantic search.
---
## ā” Features
- š§ **Persistent Context Memory**: AI agents can save decisions, design systems, API contracts, preferences, and code snippets across sessions.
- š **Intelligent Memory Search**: Fast full-text and contextual search with automatic recency fallbacks.
- š **Modern MCP 2.0 SDK**: Built using the latest `MCPServer` decorator architecture with Server-Sent Events (SSE) streaming transport.
- šļø **Supabase & PostgreSQL**: Battle-tested cloud database layer with pgvector support and Row-Level Security (RLS).
- š **Singleton Connection Pooling**: Cached client instances for high-throughput, low-latency tool execution.
- 𩺠**Built-in Health Checks**: REST endpoints for uptime monitoring and connectivity status (`/health`).
---
## š ļø Available MCP Tools
| Tool | Description | Parameters |
|---|---|---|
| `save_memory` | Save context, preferences, decisions, or code into long-term memory | `content` (str), `title` (opt), `tags` (opt) |
| `search_memory` | Search past context and discussions matching keywords or queries | `query` (str), `limit` (int, default: 5) |
| `list_memories` | List recent context entries stored in STRATA | `limit` (int, default: 10) |
| `delete_memory` | Remove a specific memory entry by UUID | `memory_id` (str) |
| `get_stats` | View database connection status, memory count, and metadata | *None* |
---
## š Quick Start
### 1. Prerequisites
- Python 3.10 or higher
- A [Supabase](https://supabase.com) account & project
### 2. Clone & Setup Environment
```bash
# Clone the repository
git clone https://github.com/your-username/STRATA.git
cd STRATA
# Copy environment file and configure your keys
cp .env.example .env
```
Edit `.env` with your Supabase credentials:
```env
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_KEY=your-supabase-service-role-key
DEFAULT_USER_ID=your-user-uuid (optional)
```
### 3. Install Dependencies
```bash
cd apps/api
python -m venv venv
# Activate virtual environment:
# Windows (PowerShell):
.\venv\Scripts\Activate.ps1
# macOS / Linux:
source venv/bin/activate
# Install requirements
pip install -r requirements.txt
```
### 4. Database Setup
Run the SQL schema located in [`supabase_schema.sql`](./supabase_schema.sql) in your **Supabase SQL Editor** to initialize the tables, vector extensions, and full-text indexes.
### 5. Start the Server
```bash
# From apps/api directory:
uvicorn main:app --reload --port 8000
```
The server starts on `http://localhost:8000` with the following endpoints:
- **SSE Endpoint**: `http://localhost:8000/sse`
- **Messages Endpoint**: `http://localhost:8000/messages/`
- **Health Check**: `http://localhost:8000/health`
---
## š Connecting to MCP Clients
### Claude Desktop
Add this to your `claude_desktop_config.json`:
- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
```json
{
"mcpServers": {
"strata": {
"url": "http://localhost:8000/sse"
}
}
}
```
### Cursor IDE
In Cursor settings under **Features > MCP Servers**, add a new server:
- **Name**: `STRATA`
- **Type**: `sse`
- **URL**: `http://localhost:8000/sse`
---
## š Project Structure
```
STRATA/
āāā apps/
ā āāā api/ # Python MCP Server
ā āāā main.py # Server logic, MCPServer instance & tools
ā āāā requirements.txt # Python dependencies
ā āāā venv/ # Python virtual environment
āāā .env.example # Template environment file
āāā .gitignore # Version control ignores
āāā package.json # Root monorepo configuration
āāā supabase_schema.sql # Database schema, pgvector, and indexes
āāā README.md # Documentation
```
---
## š”ļø License
MIT License. See [LICENSE](LICENSE) for details.
# bounce-mcp
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo issues