You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-_Note: Provides comprehensive analysis including filtered rows percentage and extra optimization details._
77
79
78
-
### Vector Store & Embedding Tools
80
+
### Vector Store & Embedding Tools (optional)
81
+
82
+
**Note**: These tools are only available when `EMBEDDING_PROVIDER` is configured. If no embedding provider is set, these tools will be disabled.
79
83
80
84
-**create_vector_store**
81
85
- Creates a new vector store (table) for embeddings.
@@ -101,6 +105,10 @@ The MCP MariaDB Server exposes a set of tools for interacting with MariaDB datab
101
105
102
106
## Embeddings & Vector Store
103
107
108
+
### Overview
109
+
110
+
The MCP MariaDB Server provides **optional** embedding and vector store capabilities. These features can be enabled by configuring an embedding provider, or completely disabled if you only need standard database operations.
111
+
104
112
### Supported Providers
105
113
106
114
-**OpenAI**
@@ -109,11 +117,10 @@ The MCP MariaDB Server exposes a set of tools for interacting with MariaDB datab
109
117
110
118
### Configuration
111
119
112
-
-`EMBEDDING_PROVIDER`: Set to `openai` (default option), can change it to required providers
120
+
-`EMBEDDING_PROVIDER`: Set to `openai`, `gemini`, `huggingface`, or leave unset to disable
113
121
-`OPENAI_API_KEY`: Required if using OpenAI embeddings
114
-
- GEMINI_API_KEY`: Required if using Gemini embeddings
115
-
- Open models from HUGGINGFACE: Required open model currently provided option for "intfloat/multilingual-e5-large-instruct" & "BAAI/bge-m3"
116
-
122
+
-`GEMINI_API_KEY`: Required if using Gemini embeddings
123
+
-`HF_MODEL`: Required if using HuggingFace embeddings (e.g., "intfloat/multilingual-e5-large-instruct" or "BAAI/bge-m3")
117
124
### Model Selection
118
125
119
126
- Default and allowed models are configurable in code (`DEFAULT_OPENAI_MODEL`, `ALLOWED_OPENAI_MODELS`)
@@ -142,13 +149,14 @@ All configuration is via environment variables (typically set in a `.env` file):
142
149
|`DB_NAME`| Default database (optional; can be set per query) | No ||
143
150
|`MCP_READ_ONLY`| Enforce read-only SQL mode (`true`/`false`) | No |`true`|
144
151
|`MCP_MAX_POOL_SIZE`| Max DB connection pool size | No |`10`|
145
-
|`EMBEDDING_PROVIDER`| Embedding provider (`openai`/`gemini`/`huggingface`) | No |`openai`|
146
-
|`OPENAI_API_KEY`| API key for OpenAI embeddings | Yes (if using embeddings) ||
147
-
|`GEMINII_API_KEY`| API key for Gemini embeddings | Yes (if using embeddings) ||
148
-
|`HF_MODEL`| Open models from Huggingface | Yes (if using embeddings) ||
152
+
|`EMBEDDING_PROVIDER`| Embedding provider (`openai`/`gemini`/`huggingface`) | No |`None`(Disabled)|
153
+
|`OPENAI_API_KEY`| API key for OpenAI embeddings | Yes (if EMBEDDING_PROVIDER=openai) ||
154
+
|`GEMINI_API_KEY`| API key for Gemini embeddings | Yes (if EMBEDDING_PROVIDER=gemini) ||
155
+
|`HF_MODEL`| Open models from Huggingface | Yes (if EMBEDDING_PROVIDER=huggingface) ||
149
156
150
157
#### Example `.env` file
151
158
159
+
**With Embedding Support (OpenAI):**
152
160
```dotenv
153
161
DB_HOST=localhost
154
162
DB_USER=your_db_user
@@ -165,6 +173,17 @@ GEMINI_API_KEY=AI...
165
173
HF_MODEL="BAAI/bge-m3"
166
174
```
167
175
176
+
**Without Embedding Support:**
177
+
```dotenv
178
+
DB_HOST=localhost
179
+
DB_USER=your_db_user
180
+
DB_PASSWORD=your_db_password
181
+
DB_PORT=3306
182
+
DB_NAME=your_default_database
183
+
MCP_READ_ONLY=true
184
+
MCP_MAX_POOL_SIZE=10
185
+
```
186
+
168
187
---
169
188
170
189
## Installation & Setup
@@ -256,9 +275,9 @@ HF_MODEL="BAAI/bge-m3"
256
275
```
257
276
---
258
277
259
-
## Integration - Claude desktop/Cursor/Windsurf
278
+
## Integration - Claude desktop/Cursor/Windsurf/VSCode
0 commit comments