|
6 | 6 |
|
7 | 7 | <h3>⚡ High-Performance SQL Parser for Go ⚡</h3> |
8 | 8 |
|
9 | | -[](https://go.dev) |
| 9 | +[](https://go.dev) |
10 | 10 | [](https://github.com/ajitpratap0/GoSQLX/releases) |
11 | 11 | [](https://www.apache.org/licenses/LICENSE-2.0) |
12 | 12 | [](http://makeapullrequest.com) |
@@ -65,6 +65,7 @@ GoSQLX is a high-performance SQL parsing library designed for production use. It |
65 | 65 | - **Zero-Copy**: Direct byte slice operations, <1μs latency |
66 | 66 | - **Intelligent Errors**: Structured error codes with typo detection, context highlighting, and helpful hints |
67 | 67 | - **Python Bindings**: [PyGoSQLX](python/README.md) — use GoSQLX from Python via ctypes FFI, 100x+ faster than pure Python parsers |
| 68 | +- **MCP Server** (v1.10.0): `gosqlx-mcp` exposes all 7 SQL tools as [Model Context Protocol](https://modelcontextprotocol.io) tools over streamable HTTP — integrate GoSQLX into Claude, Cursor, and any MCP-compatible AI assistant |
68 | 69 | - **Production Ready**: Battle-tested with 0 race conditions detected, ~85% SQL-99 compliance, Apache-2.0 licensed |
69 | 70 |
|
70 | 71 | ### Performance & Quality Highlights (v1.9.0) |
@@ -153,8 +154,19 @@ print(tables) # ['users', 'orders'] |
153 | 154 |
|
154 | 155 | See the full [PyGoSQLX documentation](python/README.md) for the complete API. |
155 | 156 |
|
| 157 | +### MCP Server |
| 158 | + |
| 159 | +Use GoSQLX SQL tools from any MCP-compatible AI assistant (Claude, Cursor, etc.): |
| 160 | + |
| 161 | +```bash |
| 162 | +go install github.com/ajitpratap0/GoSQLX/cmd/gosqlx-mcp@latest |
| 163 | +gosqlx-mcp # starts on 127.0.0.1:8080 |
| 164 | +``` |
| 165 | + |
| 166 | +See the full [MCP Server Guide](docs/MCP_GUIDE.md) for configuration, authentication, and AI assistant integration. |
| 167 | + |
156 | 168 | **Requirements:** |
157 | | -- Go 1.21 or higher |
| 169 | +- Go 1.23 or higher |
158 | 170 | - Python 3.8+ (for Python bindings) |
159 | 171 | - No external dependencies for the Go library |
160 | 172 |
|
@@ -402,6 +414,7 @@ func main() { |
402 | 414 | | [**Usage Guide**](docs/USAGE_GUIDE.md) | Detailed patterns and best practices | |
403 | 415 | | [**Architecture**](docs/ARCHITECTURE.md) | System design and internal architecture | |
404 | 416 | | [**Python Bindings**](python/README.md) | PyGoSQLX — Python API, installation, and examples | |
| 417 | +| [**MCP Server Guide**](docs/MCP_GUIDE.md) | `gosqlx-mcp` — 7 SQL tools for AI assistant integration | |
405 | 418 | | [**Troubleshooting**](docs/TROUBLESHOOTING.md) | Common issues and solutions | |
406 | 419 |
|
407 | 420 | ### Getting Started |
|
0 commit comments