MCP Sqlew
sqlew is an MCP server that provides a shared SQL context repository across sessions for AI agents. By recording the reasons for decisions and constraint rules, it prevents context loss and duplicate work, achieving efficient team knowledge management and code consistency.
2.5 points
6.7K

What is sqlew?

sqlew is a Model Context Protocol (MCP) server specifically designed for AI agents (such as Claude), providing a shared SQL context repository across sessions. It solves the problem of AI sessions starting from scratch every time. By recording decisions, constraints, and tasks, it achieves organizational memory and efficient collaboration.

How to use sqlew?

Add it to Claude's MCP server list through simple configuration, and AI agents can access the shared context database. You can use natural language commands (such as `/sqlew`) to record decisions, query history, and manage tasks, and the AI will automatically call the corresponding tools.

Applicable scenarios

Suitable for long - term project development, team collaboration, coordination of multiple AI agents, complex projects that require consistent decision - making, and scenarios where you want to reduce repeated explanations and improve development efficiency.

Main features

Decision repository
Record key decisions in the project, including why a certain choice was made, alternative options considered, and trade - off factors, to provide decision - making context for the future.
Constraint management
Define constraints such as coding rules, architecture boundaries, and performance requirements to ensure that AI agents follow consistent development specifications.
Task tracking
Manage to - do, in - progress, and completed tasks, support dependency relationships and automatic file change tracking, and implement kanban - style project management.
Duplicate detection
A three - layer similarity detection system (0 - 100 score algorithm) that intelligently identifies similar decisions and constraints, avoids duplicate work, and recommends reusing existing content.
File change tracking
Automatically monitor file modifications. When the AI edits a file, it automatically updates the status of related tasks, achieving zero - manual - update task management.
Multi - database support
Supports SQLite (default), MySQL 8.0/MariaDB 10+ and PostgreSQL 12+, meeting different needs from personal development to production environments.
Advantages
🧠 Organizational memory: Records the 'why' of decisions and the 'how' of constraints, going beyond git which only records 'what was done'
⚡ Efficient and cost - saving: Reduces token usage by 60 - 75% through structured data storage and selective querying
🛡️ Prevents degradation: Avoids context decay and inconsistency, and the AI will not re - introduce fixed errors
🎯 High - quality code: Ensures that the code conforms to the team style through constraints and prevents blind imitation through decision history
📊 Transparent tracking: Clear task dependencies and progress visibility to understand what the AI is doing
🔒 Completely private: Does not send any data to external networks, does not collect usage statistics, ensuring data security
Limitations
Requires Node.js 20.0.0 or higher, not compatible with old environments
Each project requires an independent database, and global installation is not recommended
Does not support Junie AI because its MCP configuration cannot handle project - specific database paths
Needs to restart Claude to load initialized agents and commands
Learning curve: Requires understanding concepts such as decisions, constraints, and tasks to use effectively

How to use

Installation and configuration
Add the sqlew configuration to the.mcp.json file in the project root directory and specify to run using npx.
Initialization and restart
When running for the first time, sqlew will initialize the database and install custom agents and commands. After completion, you need to exit and restart Claude to load all functions.
Use the /sqlew command
Use natural language commands directly in Claude Code, and sqlew will automatically recognize the intention and call the corresponding tools.
Configure the database (optional)
If you need to use MySQL or PostgreSQL, or customize the SQLite path, you can edit the.sqlew/config.toml configuration file.

Usage examples

Record technology selection decisions
When the team decides to use a specific technology stack, record the decision - making process and reasons for future reference.
Define coding constraints
Set development specifications for the project to ensure that all AI agents follow the same coding standards.
Manage development tasks
Break down large - scale features into manageable tasks and track progress.
Avoid duplicate decisions
Before making a new decision, check if there are similar historical decisions that can be reused.

Frequently Asked Questions

Is sqlew secure? Will my data be sent externally?
Why do I need to restart Claude after installation?
Can I use the same sqlew instance in multiple projects?
Which databases are supported?
How to migrate to a new version of sqlew?
What is the difference between sqlew and ordinary notes or documents?

Related resources

Official GitHub repository
Source code, issue tracking, and contribution guidelines
npm package page
Latest version, download statistics, and version history
Detailed documentation directory
Complete usage guide, tool reference, and best practices
Model Context Protocol official website
Official documentation and specifications of the MCP protocol
Change log
Version update history and new features

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "sqlew": {
      "command": "npx",
      "args": ["sqlew"]
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

A
Airweave
Airweave is an open - source context retrieval layer for AI agents and RAG systems. It connects and synchronizes data from various applications, tools, and databases, and provides relevant, real - time, multi - source contextual information to AI agents through a unified search interface.
Python
15.2K
5 points
V
Vestige
Vestige is an AI memory engine based on cognitive science. By implementing 29 neuroscience modules such as prediction error gating, FSRS - 6 spaced repetition, and memory dreaming, it provides long - term memory capabilities for AI. It includes a 3D visualization dashboard and 21 MCP tools, runs completely locally, and does not require the cloud.
Rust
10.5K
4.5 points
M
Moltbrain
MoltBrain is a long-term memory layer plugin designed for OpenClaw, MoltBook, and Claude Code, capable of automatically learning and recalling project context, providing intelligent search, observation recording, analysis statistics, and persistent storage functions.
TypeScript
10.1K
4.5 points
B
Bm.md
A feature-rich Markdown typesetting tool that supports multiple style themes and platform adaptation, providing real-time editing preview, image export, and API integration capabilities
TypeScript
14.9K
5 points
S
Security Detections MCP
Security Detections MCP is a server based on the Model Context Protocol that allows LLMs to query a unified security detection rule database covering Sigma, Splunk ESCU, Elastic, and KQL formats. The latest version 3.0 is upgraded to an autonomous detection engineering platform that can automatically extract TTPs from threat intelligence, analyze coverage gaps, generate SIEM-native format detection rules, run tests, and verify. The project includes over 71 tools, 11 pre-built workflow prompts, and a knowledge graph system, supporting multiple SIEM platforms.
TypeScript
6.7K
4 points
P
Paperbanana
Python
8.9K
5 points
B
Better Icons
An MCP server and CLI tool that provides search and retrieval of over 200,000 icons, supports more than 150 icon libraries, and helps AI assistants and developers quickly obtain and use icons.
TypeScript
8.7K
4.5 points
A
Assistant Ui
assistant - ui is an open - source TypeScript/React library for quickly building production - grade AI chat interfaces, providing composable UI components, streaming responses, accessibility, etc., and supporting multiple AI backends and models.
TypeScript
10.0K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
80.3K
4.3 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
28.5K
4.3 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
23.8K
4.5 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
39.2K
5 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
37.4K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
70.7K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
24.0K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
55.4K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase