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
Copy file name to clipboardExpand all lines: README.md
+41-12Lines changed: 41 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ The MCP MariaDB Server exposes a set of tools for interacting with MariaDB datab
25
25
- Retrieving table schemas
26
26
- Executing safe, read-only SQL queries
27
27
- Creating and managing vector stores for embedding-based search
28
-
- Integrating with embedding providers (currently OpenAI, Gemini, and HuggingFace)
28
+
- Integrating with embedding providers (currently OpenAI, Gemini, and HuggingFace) (optional)
29
29
30
30
---
31
31
@@ -63,7 +63,9 @@ The MCP MariaDB Server exposes a set of tools for interacting with MariaDB datab
63
63
- Creates a new database if it doesn't exist.
64
64
- Parameters: `database_name` (string, required)
65
65
66
-
### Vector Store & Embedding Tools
66
+
### Vector Store & Embedding Tools (optional)
67
+
68
+
**Note**: These tools are only available when `EMBEDDING_PROVIDER` is configured. If no embedding provider is set, these tools will be disabled.
67
69
68
70
-**create_vector_store**
69
71
- Creates a new vector store (table) for embeddings.
@@ -89,6 +91,10 @@ The MCP MariaDB Server exposes a set of tools for interacting with MariaDB datab
89
91
90
92
## Embeddings & Vector Store
91
93
94
+
### Overview
95
+
96
+
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.
97
+
92
98
### Supported Providers
93
99
94
100
-**OpenAI**
@@ -97,11 +103,10 @@ The MCP MariaDB Server exposes a set of tools for interacting with MariaDB datab
97
103
98
104
### Configuration
99
105
100
-
-`EMBEDDING_PROVIDER`: Set to `openai` (default option), can change it to required providers
106
+
-`EMBEDDING_PROVIDER`: Set to `openai`, `gemini`, `huggingface`, or leave unset to disable
101
107
-`OPENAI_API_KEY`: Required if using OpenAI embeddings
102
-
- GEMINI_API_KEY`: Required if using Gemini embeddings
103
-
- Open models from HUGGINGFACE: Required open model currently provided option for "intfloat/multilingual-e5-large-instruct" & "BAAI/bge-m3"
104
-
108
+
-`GEMINI_API_KEY`: Required if using Gemini embeddings
109
+
-`HF_MODEL`: Required if using HuggingFace embeddings (e.g., "intfloat/multilingual-e5-large-instruct" or "BAAI/bge-m3")
105
110
### Model Selection
106
111
107
112
- Default and allowed models are configurable in code (`DEFAULT_OPENAI_MODEL`, `ALLOWED_OPENAI_MODELS`)
@@ -130,13 +135,14 @@ All configuration is via environment variables (typically set in a `.env` file):
130
135
|`DB_NAME`| Default database (optional; can be set per query) | No ||
131
136
|`MCP_READ_ONLY`| Enforce read-only SQL mode (`true`/`false`) | No |`true`|
132
137
|`MCP_MAX_POOL_SIZE`| Max DB connection pool size | No |`10`|
133
-
|`EMBEDDING_PROVIDER`| Embedding provider (`openai`/`gemini`/`huggingface`) | No |`openai`|
134
-
|`OPENAI_API_KEY`| API key for OpenAI embeddings | Yes (if using embeddings) ||
135
-
|`GEMINII_API_KEY`| API key for Gemini embeddings | Yes (if using embeddings) ||
136
-
|`HF_MODEL`| Open models from Huggingface | Yes (if using embeddings) ||
138
+
|`EMBEDDING_PROVIDER`| Embedding provider (`openai`/`gemini`/`huggingface`) | No |`None`(Disabled)|
139
+
|`OPENAI_API_KEY`| API key for OpenAI embeddings | Yes (if EMBEDDING_PROVIDER=openai) ||
140
+
|`GEMINI_API_KEY`| API key for Gemini embeddings | Yes (if EMBEDDING_PROVIDER=gemini) ||
141
+
|`HF_MODEL`| Open models from Huggingface | Yes (if EMBEDDING_PROVIDER=huggingface) ||
137
142
138
143
#### Example `.env` file
139
144
145
+
**With Embedding Support (OpenAI):**
140
146
```dotenv
141
147
DB_HOST=localhost
142
148
DB_USER=your_db_user
@@ -153,6 +159,17 @@ GEMINI_API_KEY=AI...
153
159
HF_MODEL="BAAI/bge-m3"
154
160
```
155
161
162
+
**Without Embedding Support:**
163
+
```dotenv
164
+
DB_HOST=localhost
165
+
DB_USER=your_db_user
166
+
DB_PASSWORD=your_db_password
167
+
DB_PORT=3306
168
+
DB_NAME=your_default_database
169
+
MCP_READ_ONLY=true
170
+
MCP_MAX_POOL_SIZE=10
171
+
```
172
+
156
173
---
157
174
158
175
## Installation & Setup
@@ -244,9 +261,9 @@ HF_MODEL="BAAI/bge-m3"
244
261
```
245
262
---
246
263
247
-
## Integration - Claude desktop/Cursor/Windsurf
264
+
## Integration - Claude desktop/Cursor/Windsurf/VSCode
0 commit comments