mcp-server-motherduck 0.4.1__tar.gz → 0.4.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mcp_server_motherduck-0.4.1 → mcp_server_motherduck-0.4.3}/.idea/misc.xml +0 -1
- {mcp_server_motherduck-0.4.1 → mcp_server_motherduck-0.4.3}/.idea/workspace.xml +11 -10
- {mcp_server_motherduck-0.4.1 → mcp_server_motherduck-0.4.3}/PKG-INFO +171 -18
- {mcp_server_motherduck-0.4.1 → mcp_server_motherduck-0.4.3}/README.md +169 -16
- {mcp_server_motherduck-0.4.1 → mcp_server_motherduck-0.4.3}/pyproject.toml +2 -2
- {mcp_server_motherduck-0.4.1 → mcp_server_motherduck-0.4.3}/src/mcp_server_motherduck/__init__.py +13 -0
- {mcp_server_motherduck-0.4.1 → mcp_server_motherduck-0.4.3}/src/mcp_server_motherduck/server.py +73 -23
- {mcp_server_motherduck-0.4.1 → mcp_server_motherduck-0.4.3}/uv.lock +36 -36
- {mcp_server_motherduck-0.4.1 → mcp_server_motherduck-0.4.3}/.github/workflows/python-publish.yml +0 -0
- {mcp_server_motherduck-0.4.1 → mcp_server_motherduck-0.4.3}/.gitignore +0 -0
- {mcp_server_motherduck-0.4.1 → mcp_server_motherduck-0.4.3}/.idea/.gitignore +0 -0
- {mcp_server_motherduck-0.4.1 → mcp_server_motherduck-0.4.3}/.idea/mcp-server-motherduck.iml +0 -0
- {mcp_server_motherduck-0.4.1 → mcp_server_motherduck-0.4.3}/.idea/modules.xml +0 -0
- {mcp_server_motherduck-0.4.1 → mcp_server_motherduck-0.4.3}/.idea/vcs.xml +0 -0
- {mcp_server_motherduck-0.4.1 → mcp_server_motherduck-0.4.3}/LICENSE +0 -0
- {mcp_server_motherduck-0.4.1 → mcp_server_motherduck-0.4.3}/makefile +0 -0
- {mcp_server_motherduck-0.4.1 → mcp_server_motherduck-0.4.3}/src/mcp_server_motherduck/prompt.py +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<option name="autoReloadType" value="SELECTIVE" />
|
|
5
5
|
</component>
|
|
6
6
|
<component name="ChangeListManager">
|
|
7
|
-
<list default="true" id="
|
|
7
|
+
<list default="true" id="8bdee1d4-886c-4093-b4cf-95b120034c9e" name="Changes" comment="">
|
|
8
8
|
<change beforePath="$PROJECT_DIR$/pyproject.toml" beforeDir="false" afterPath="$PROJECT_DIR$/pyproject.toml" afterDir="false" />
|
|
9
9
|
<change beforePath="$PROJECT_DIR$/src/mcp_server_motherduck/server.py" beforeDir="false" afterPath="$PROJECT_DIR$/src/mcp_server_motherduck/server.py" afterDir="false" />
|
|
10
10
|
</list>
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
<option name="stateVersion" value="1" />
|
|
21
21
|
</component>
|
|
22
22
|
<component name="ProjectColorInfo">{
|
|
23
|
-
"associatedIndex":
|
|
23
|
+
"associatedIndex": 3
|
|
24
24
|
}</component>
|
|
25
|
-
<component name="ProjectId" id="
|
|
25
|
+
<component name="ProjectId" id="2vcb2orYlzlw5ZHOvoXgpTtCdVi" />
|
|
26
26
|
<component name="ProjectViewState">
|
|
27
27
|
<option name="hideEmptyMiddlePackages" value="true" />
|
|
28
28
|
<option name="showLibraryContents" value="true" />
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
34
34
|
"WebServerToolWindowFactoryState": "false",
|
|
35
35
|
"git-widget-placeholder": "main",
|
|
36
|
-
"last_opened_file_path": "/Users/doehmen/Documents/
|
|
36
|
+
"last_opened_file_path": "/Users/doehmen/Documents/motherduck/mcp-server-motherduck",
|
|
37
37
|
"node.js.detected.package.eslint": "true",
|
|
38
38
|
"node.js.detected.package.tslint": "true",
|
|
39
39
|
"node.js.selected.package.eslint": "(autodetect)",
|
|
@@ -48,14 +48,15 @@
|
|
|
48
48
|
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
|
49
49
|
<component name="TaskManager">
|
|
50
50
|
<task active="true" id="Default" summary="Default task">
|
|
51
|
-
<changelist id="
|
|
52
|
-
<created>
|
|
51
|
+
<changelist id="8bdee1d4-886c-4093-b4cf-95b120034c9e" name="Changes" comment="" />
|
|
52
|
+
<created>1744447105618</created>
|
|
53
53
|
<option name="number" value="Default" />
|
|
54
54
|
<option name="presentableId" value="Default" />
|
|
55
|
-
<updated>
|
|
56
|
-
<workItem from="
|
|
57
|
-
<workItem from="
|
|
58
|
-
<workItem from="
|
|
55
|
+
<updated>1744447105618</updated>
|
|
56
|
+
<workItem from="1744447107447" duration="7470000" />
|
|
57
|
+
<workItem from="1744787944049" duration="599000" />
|
|
58
|
+
<workItem from="1744896732489" duration="6070000" />
|
|
59
|
+
<workItem from="1747725447463" duration="540000" />
|
|
59
60
|
</task>
|
|
60
61
|
<servers />
|
|
61
62
|
</component>
|
|
@@ -1,26 +1,30 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mcp-server-motherduck
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.3
|
|
4
4
|
Summary: A MCP server for MotherDuck and local DuckDB
|
|
5
5
|
Author-email: tdoehmen <till@motherduck.com>
|
|
6
6
|
License-File: LICENSE
|
|
7
7
|
Requires-Python: >=3.10
|
|
8
|
-
Requires-Dist: duckdb==1.2.
|
|
8
|
+
Requires-Dist: duckdb==1.2.2
|
|
9
9
|
Requires-Dist: mcp>=1.3.0
|
|
10
10
|
Requires-Dist: pandas>=2.0.0
|
|
11
11
|
Requires-Dist: tabulate>=0.9.0
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
13
|
|
|
14
|
-
# MotherDuck MCP Server
|
|
14
|
+
# MotherDuck's DuckDB MCP Server
|
|
15
15
|
|
|
16
|
-
An MCP server implementation that
|
|
16
|
+
An MCP server implementation that interacts with DuckDB and MotherDuck databases, providing SQL analytics capabilities to AI Assistants and IDEs.
|
|
17
|
+
|
|
18
|
+
## Resources
|
|
19
|
+
- [Close the Loop: Faster Data Pipelines with MCP, DuckDB & AI (Blogpost)](https://motherduck.com/blog/faster-data-pipelines-with-mcp-duckdb-ai/)
|
|
20
|
+
- [Faster Data Pipelines development with MCP and DuckDB (YouTube)](https://www.youtube.com/watch?v=yG1mv8ZRxcU)
|
|
17
21
|
|
|
18
22
|
## Features
|
|
19
23
|
|
|
20
|
-
- **Hybrid execution**: query data from
|
|
24
|
+
- **Hybrid execution**: query data from local DuckDB or/and cloud-based MotherDuck databases
|
|
21
25
|
- **Cloud storage integration**: access data stored in Amazon S3 or other cloud storage thanks to MotherDuck's integrations
|
|
22
26
|
- **Data sharing**: create and share databases
|
|
23
|
-
- **SQL analytics**: use DuckDB's SQL dialect to query any size of data directly from
|
|
27
|
+
- **SQL analytics**: use DuckDB's SQL dialect to query any size of data directly from your AI Assistant or IDE
|
|
24
28
|
- **Serverless architecture**: run analytics without needing to configure instances or clusters
|
|
25
29
|
|
|
26
30
|
## Components
|
|
@@ -35,7 +39,7 @@ The server provides one prompt:
|
|
|
35
39
|
|
|
36
40
|
The server offers one tool:
|
|
37
41
|
|
|
38
|
-
- `query`: Execute a SQL query on the
|
|
42
|
+
- `query`: Execute a SQL query on the DuckDB or MotherDuck database
|
|
39
43
|
- **Inputs**:
|
|
40
44
|
- `query` (string, required): The SQL query to execute
|
|
41
45
|
|
|
@@ -43,23 +47,55 @@ All interactions with both DuckDB and MotherDuck are done through writing SQL qu
|
|
|
43
47
|
|
|
44
48
|
## Getting Started
|
|
45
49
|
|
|
46
|
-
### Prerequisites
|
|
50
|
+
### General Prerequisites
|
|
47
51
|
|
|
48
|
-
- A MotherDuck account (sign up at [motherduck.com](https://motherduck.com))
|
|
49
|
-
- A MotherDuck access token
|
|
50
52
|
- `uv` installed, you can install it using `pip install uv` or `brew install uv`
|
|
51
53
|
|
|
52
|
-
If you plan to use
|
|
54
|
+
If you plan to use the MCP with Claude Desktop or any other MCP comptabile client, the client need to be installed.
|
|
55
|
+
|
|
56
|
+
### Prerequisites for DuckDB
|
|
57
|
+
|
|
58
|
+
- No prerequisites. The MCP server can create an in-memory database on-the-fly
|
|
59
|
+
- Or connect to an existing local DuckDB database file , or one stored on remote object storage (e.g., AWS S3).
|
|
60
|
+
|
|
61
|
+
See [Connect to local DuckDB](#connect-to-local-duckdb).
|
|
62
|
+
|
|
63
|
+
### Prerequisites for MotherDuck
|
|
64
|
+
|
|
65
|
+
- Sign up for a [MotherDuck account](https://app.motherduck.com/?auth_flow=signup)
|
|
66
|
+
- Generate an access token via the [MotherDuck UI](https://app.motherduck.com/settings/tokens?auth_flow=signup)
|
|
67
|
+
- Store the token securely for use in the configuration
|
|
68
|
+
|
|
69
|
+
### Usage with Cursor
|
|
70
|
+
|
|
71
|
+
1. Install Cursor from [cursor.com/downloads](https://www.cursor.com/downloads) if you haven't already
|
|
53
72
|
|
|
54
|
-
|
|
73
|
+
2. Open Cursor:
|
|
55
74
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
75
|
+
- To set it up globally for the first time, go to Settings->MCP and click on "+ Add new global MCP server".
|
|
76
|
+
- This will open a `mcp.json` file to which you add the following configuration:
|
|
77
|
+
|
|
78
|
+
```json
|
|
79
|
+
{
|
|
80
|
+
"mcpServers": {
|
|
81
|
+
"mcp-server-motherduck": {
|
|
82
|
+
"command": "uvx",
|
|
83
|
+
"args": [
|
|
84
|
+
"mcp-server-motherduck",
|
|
85
|
+
"--db-path",
|
|
86
|
+
"md:",
|
|
87
|
+
"--motherduck-token",
|
|
88
|
+
"<YOUR_MOTHERDUCK_TOKEN_HERE>"
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
```
|
|
59
94
|
|
|
60
95
|
### Usage with VS Code
|
|
61
96
|
|
|
62
97
|
[](https://insiders.vscode.dev/redirect/mcp/install?name=mcp-server-motherduck&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22mcp-server-motherduck%22%2C%22--db-path%22%2C%22md%3A%22%2C%22--motherduck-token%22%2C%22%24%7Binput%3Amotherduck_token%7D%22%5D%7D&inputs=%5B%7B%22type%22%3A%22promptString%22%2C%22id%22%3A%22motherduck_token%22%2C%22description%22%3A%22MotherDuck+Token%22%2C%22password%22%3Atrue%7D%5D) [](https://insiders.vscode.dev/redirect/mcp/install?name=mcp-server-motherduck&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22mcp-server-motherduck%22%2C%22--db-path%22%2C%22md%3A%22%2C%22--motherduck-token%22%2C%22%24%7Binput%3Amotherduck_token%7D%22%5D%7D&inputs=%5B%7B%22type%22%3A%22promptString%22%2C%22id%22%3A%22motherduck_token%22%2C%22description%22%3A%22MotherDuck+Token%22%2C%22password%22%3Atrue%7D%5D&quality=insiders)
|
|
98
|
+
|
|
63
99
|
1. For the quickest installation, click one of the "Install with UV" buttons at the top of this README.
|
|
64
100
|
|
|
65
101
|
### Manual Installation
|
|
@@ -140,7 +176,7 @@ Optionally, you can add it to a file called `.vscode/mcp.json` in your workspace
|
|
|
140
176
|
"md:",
|
|
141
177
|
"--motherduck-token",
|
|
142
178
|
"<YOUR_MOTHERDUCK_TOKEN_HERE>"
|
|
143
|
-
]
|
|
179
|
+
]
|
|
144
180
|
}
|
|
145
181
|
}
|
|
146
182
|
}
|
|
@@ -152,9 +188,102 @@ Optionally, you can add it to a file called `.vscode/mcp.json` in your workspace
|
|
|
152
188
|
- Replace `YOUR_HOME_FOLDER_PATH` with the path to your home directory (needed by DuckDB for file operations). For example, on macOS, it would be `/Users/your_username`
|
|
153
189
|
- The `HOME` environment variable is required for DuckDB to function properly.
|
|
154
190
|
|
|
191
|
+
## Securing your MCP Server when querying MotherDuck
|
|
192
|
+
|
|
193
|
+
If the MCP server is exposed to third parties and should only have read access to data, we recommend using a read scaling token and running the MCP server in SaaS mode.
|
|
194
|
+
|
|
195
|
+
**Read Scaling Tokens** are special access tokens that enable scalable read operations by allowing up to 4 concurrent read replicas, improving performance for multiple end users while *restricting write capabilities*.
|
|
196
|
+
Refer to the [Read Scaling documentation](https://motherduck.com/docs/key-tasks/authenticating-and-connecting-to-motherduck/read-scaling/#creating-a-read-scaling-token) to learn how to create a read-scaling token.
|
|
197
|
+
|
|
198
|
+
**SaaS Mode** in MotherDuck enhances security by restricting it's access to local files, databases, extensions, and configurations, making it ideal for third-party tools that require stricter environment protection. Learn more about it in the [SaaS Mode documentation](https://motherduck.com/docs/key-tasks/authenticating-and-connecting-to-motherduck/authenticating-to-motherduck/#authentication-using-saas-mode).
|
|
199
|
+
|
|
200
|
+
**Secure Configuration**
|
|
201
|
+
|
|
202
|
+
```json
|
|
203
|
+
{
|
|
204
|
+
"mcpServers": {
|
|
205
|
+
"mcp-server-motherduck": {
|
|
206
|
+
"command": "uvx",
|
|
207
|
+
"args": [
|
|
208
|
+
"mcp-server-motherduck",
|
|
209
|
+
"--db-path",
|
|
210
|
+
"md:",
|
|
211
|
+
"--motherduck-token",
|
|
212
|
+
"<YOUR_READ_SCALING_TOKEN_HERE>",
|
|
213
|
+
"--saas-mode"
|
|
214
|
+
]
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
## Connect to local DuckDB
|
|
221
|
+
|
|
222
|
+
To connect to a local DuckDB, instead of using the MotherDuck token, specify the path to your local DuckDB database file or use `:memory:` for an in-memory database.
|
|
223
|
+
|
|
224
|
+
In-memory database:
|
|
225
|
+
|
|
226
|
+
```json
|
|
227
|
+
{
|
|
228
|
+
"mcpServers": {
|
|
229
|
+
"mcp-server-motherduck": {
|
|
230
|
+
"command": "uvx",
|
|
231
|
+
"args": [
|
|
232
|
+
"mcp-server-motherduck",
|
|
233
|
+
"--db-path",
|
|
234
|
+
":memory:"
|
|
235
|
+
]
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
Local DuckDB file:
|
|
242
|
+
|
|
243
|
+
```json
|
|
244
|
+
{
|
|
245
|
+
"mcpServers": {
|
|
246
|
+
"mcp-server-motherduck": {
|
|
247
|
+
"command": "uvx",
|
|
248
|
+
"args": [
|
|
249
|
+
"mcp-server-motherduck",
|
|
250
|
+
"--db-path",
|
|
251
|
+
"/path/to/your/local.db"
|
|
252
|
+
]
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
Local DuckDB file in [readonly mode](https://duckdb.org/docs/stable/connect/concurrency.html):
|
|
259
|
+
|
|
260
|
+
```json
|
|
261
|
+
{
|
|
262
|
+
"mcpServers": {
|
|
263
|
+
"mcp-server-motherduck": {
|
|
264
|
+
"command": "uvx",
|
|
265
|
+
"args": [
|
|
266
|
+
"mcp-server-motherduck",
|
|
267
|
+
"--db-path",
|
|
268
|
+
"/path/to/your/local.db",
|
|
269
|
+
"--read-only"
|
|
270
|
+
]
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
**Note**: readonly mode for local file-backed DuckDB connections also makes use of
|
|
277
|
+
short lived connections. Each time the query MCP tool is used a temporary,
|
|
278
|
+
reaodnly connection is created + query is executed + connection is closed. This
|
|
279
|
+
feature was motivated by a workflow where [DBT](https://www.getdbt.com) was for
|
|
280
|
+
modeling data within duckdb and then an MCP client (Windsurf/Cline/Claude/Cursor)
|
|
281
|
+
was used for exploring the database. The short lived connections allow each tool
|
|
282
|
+
to run and then release their connection, allowing the next tool to connect.
|
|
283
|
+
|
|
155
284
|
## Example Queries
|
|
156
285
|
|
|
157
|
-
Once configured, you can ask Claude to run queries like:
|
|
286
|
+
Once configured, you can e.g. ask Claude to run queries like:
|
|
158
287
|
|
|
159
288
|
- "Create a new database and table in MotherDuck"
|
|
160
289
|
- "Query data from my local CSV file"
|
|
@@ -195,7 +324,7 @@ If you don't specify a database path but have set the `motherduck_token` environ
|
|
|
195
324
|
|
|
196
325
|
## Running in SSE mode
|
|
197
326
|
|
|
198
|
-
The server could also be
|
|
327
|
+
The server could also be running SSE mode using `supergateway` by running the following command:
|
|
199
328
|
|
|
200
329
|
```bash
|
|
201
330
|
npx -y supergateway --stdio "uvx mcp-server-motherduck --db-path md: --motherduck-token <your_motherduck_token>"
|
|
@@ -203,6 +332,30 @@ npx -y supergateway --stdio "uvx mcp-server-motherduck --db-path md: --motherduc
|
|
|
203
332
|
|
|
204
333
|
And you can point your clients such as Claude Desktop, Cursor to this endpoint.
|
|
205
334
|
|
|
335
|
+
## Development configuration
|
|
336
|
+
|
|
337
|
+
To run the server from a local development environment, use the following configuration:
|
|
338
|
+
|
|
339
|
+
```json
|
|
340
|
+
{
|
|
341
|
+
"mcpServers": {
|
|
342
|
+
"mcp-server-motherduck": {
|
|
343
|
+
"command": "uv",
|
|
344
|
+
"args": [
|
|
345
|
+
"--directory",
|
|
346
|
+
"/path/to/your/local/mcp-server-motherduck",
|
|
347
|
+
"run",
|
|
348
|
+
"mcp-server-motherduck",
|
|
349
|
+
"--db-path",
|
|
350
|
+
"md:",
|
|
351
|
+
"--motherduck-token",
|
|
352
|
+
"<YOUR_MOTHERDUCK_TOKEN_HERE>"
|
|
353
|
+
]
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
```
|
|
358
|
+
|
|
206
359
|
## Troubleshooting
|
|
207
360
|
|
|
208
361
|
- If you encounter connection issues, verify your MotherDuck token is correct
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
# MotherDuck MCP Server
|
|
1
|
+
# MotherDuck's DuckDB MCP Server
|
|
2
2
|
|
|
3
|
-
An MCP server implementation that
|
|
3
|
+
An MCP server implementation that interacts with DuckDB and MotherDuck databases, providing SQL analytics capabilities to AI Assistants and IDEs.
|
|
4
|
+
|
|
5
|
+
## Resources
|
|
6
|
+
- [Close the Loop: Faster Data Pipelines with MCP, DuckDB & AI (Blogpost)](https://motherduck.com/blog/faster-data-pipelines-with-mcp-duckdb-ai/)
|
|
7
|
+
- [Faster Data Pipelines development with MCP and DuckDB (YouTube)](https://www.youtube.com/watch?v=yG1mv8ZRxcU)
|
|
4
8
|
|
|
5
9
|
## Features
|
|
6
10
|
|
|
7
|
-
- **Hybrid execution**: query data from
|
|
11
|
+
- **Hybrid execution**: query data from local DuckDB or/and cloud-based MotherDuck databases
|
|
8
12
|
- **Cloud storage integration**: access data stored in Amazon S3 or other cloud storage thanks to MotherDuck's integrations
|
|
9
13
|
- **Data sharing**: create and share databases
|
|
10
|
-
- **SQL analytics**: use DuckDB's SQL dialect to query any size of data directly from
|
|
14
|
+
- **SQL analytics**: use DuckDB's SQL dialect to query any size of data directly from your AI Assistant or IDE
|
|
11
15
|
- **Serverless architecture**: run analytics without needing to configure instances or clusters
|
|
12
16
|
|
|
13
17
|
## Components
|
|
@@ -22,7 +26,7 @@ The server provides one prompt:
|
|
|
22
26
|
|
|
23
27
|
The server offers one tool:
|
|
24
28
|
|
|
25
|
-
- `query`: Execute a SQL query on the
|
|
29
|
+
- `query`: Execute a SQL query on the DuckDB or MotherDuck database
|
|
26
30
|
- **Inputs**:
|
|
27
31
|
- `query` (string, required): The SQL query to execute
|
|
28
32
|
|
|
@@ -30,23 +34,55 @@ All interactions with both DuckDB and MotherDuck are done through writing SQL qu
|
|
|
30
34
|
|
|
31
35
|
## Getting Started
|
|
32
36
|
|
|
33
|
-
### Prerequisites
|
|
37
|
+
### General Prerequisites
|
|
34
38
|
|
|
35
|
-
- A MotherDuck account (sign up at [motherduck.com](https://motherduck.com))
|
|
36
|
-
- A MotherDuck access token
|
|
37
39
|
- `uv` installed, you can install it using `pip install uv` or `brew install uv`
|
|
38
40
|
|
|
39
|
-
If you plan to use
|
|
41
|
+
If you plan to use the MCP with Claude Desktop or any other MCP comptabile client, the client need to be installed.
|
|
42
|
+
|
|
43
|
+
### Prerequisites for DuckDB
|
|
44
|
+
|
|
45
|
+
- No prerequisites. The MCP server can create an in-memory database on-the-fly
|
|
46
|
+
- Or connect to an existing local DuckDB database file , or one stored on remote object storage (e.g., AWS S3).
|
|
47
|
+
|
|
48
|
+
See [Connect to local DuckDB](#connect-to-local-duckdb).
|
|
49
|
+
|
|
50
|
+
### Prerequisites for MotherDuck
|
|
51
|
+
|
|
52
|
+
- Sign up for a [MotherDuck account](https://app.motherduck.com/?auth_flow=signup)
|
|
53
|
+
- Generate an access token via the [MotherDuck UI](https://app.motherduck.com/settings/tokens?auth_flow=signup)
|
|
54
|
+
- Store the token securely for use in the configuration
|
|
55
|
+
|
|
56
|
+
### Usage with Cursor
|
|
57
|
+
|
|
58
|
+
1. Install Cursor from [cursor.com/downloads](https://www.cursor.com/downloads) if you haven't already
|
|
40
59
|
|
|
41
|
-
|
|
60
|
+
2. Open Cursor:
|
|
42
61
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
62
|
+
- To set it up globally for the first time, go to Settings->MCP and click on "+ Add new global MCP server".
|
|
63
|
+
- This will open a `mcp.json` file to which you add the following configuration:
|
|
64
|
+
|
|
65
|
+
```json
|
|
66
|
+
{
|
|
67
|
+
"mcpServers": {
|
|
68
|
+
"mcp-server-motherduck": {
|
|
69
|
+
"command": "uvx",
|
|
70
|
+
"args": [
|
|
71
|
+
"mcp-server-motherduck",
|
|
72
|
+
"--db-path",
|
|
73
|
+
"md:",
|
|
74
|
+
"--motherduck-token",
|
|
75
|
+
"<YOUR_MOTHERDUCK_TOKEN_HERE>"
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
```
|
|
46
81
|
|
|
47
82
|
### Usage with VS Code
|
|
48
83
|
|
|
49
84
|
[](https://insiders.vscode.dev/redirect/mcp/install?name=mcp-server-motherduck&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22mcp-server-motherduck%22%2C%22--db-path%22%2C%22md%3A%22%2C%22--motherduck-token%22%2C%22%24%7Binput%3Amotherduck_token%7D%22%5D%7D&inputs=%5B%7B%22type%22%3A%22promptString%22%2C%22id%22%3A%22motherduck_token%22%2C%22description%22%3A%22MotherDuck+Token%22%2C%22password%22%3Atrue%7D%5D) [](https://insiders.vscode.dev/redirect/mcp/install?name=mcp-server-motherduck&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22mcp-server-motherduck%22%2C%22--db-path%22%2C%22md%3A%22%2C%22--motherduck-token%22%2C%22%24%7Binput%3Amotherduck_token%7D%22%5D%7D&inputs=%5B%7B%22type%22%3A%22promptString%22%2C%22id%22%3A%22motherduck_token%22%2C%22description%22%3A%22MotherDuck+Token%22%2C%22password%22%3Atrue%7D%5D&quality=insiders)
|
|
85
|
+
|
|
50
86
|
1. For the quickest installation, click one of the "Install with UV" buttons at the top of this README.
|
|
51
87
|
|
|
52
88
|
### Manual Installation
|
|
@@ -127,7 +163,7 @@ Optionally, you can add it to a file called `.vscode/mcp.json` in your workspace
|
|
|
127
163
|
"md:",
|
|
128
164
|
"--motherduck-token",
|
|
129
165
|
"<YOUR_MOTHERDUCK_TOKEN_HERE>"
|
|
130
|
-
]
|
|
166
|
+
]
|
|
131
167
|
}
|
|
132
168
|
}
|
|
133
169
|
}
|
|
@@ -139,9 +175,102 @@ Optionally, you can add it to a file called `.vscode/mcp.json` in your workspace
|
|
|
139
175
|
- Replace `YOUR_HOME_FOLDER_PATH` with the path to your home directory (needed by DuckDB for file operations). For example, on macOS, it would be `/Users/your_username`
|
|
140
176
|
- The `HOME` environment variable is required for DuckDB to function properly.
|
|
141
177
|
|
|
178
|
+
## Securing your MCP Server when querying MotherDuck
|
|
179
|
+
|
|
180
|
+
If the MCP server is exposed to third parties and should only have read access to data, we recommend using a read scaling token and running the MCP server in SaaS mode.
|
|
181
|
+
|
|
182
|
+
**Read Scaling Tokens** are special access tokens that enable scalable read operations by allowing up to 4 concurrent read replicas, improving performance for multiple end users while *restricting write capabilities*.
|
|
183
|
+
Refer to the [Read Scaling documentation](https://motherduck.com/docs/key-tasks/authenticating-and-connecting-to-motherduck/read-scaling/#creating-a-read-scaling-token) to learn how to create a read-scaling token.
|
|
184
|
+
|
|
185
|
+
**SaaS Mode** in MotherDuck enhances security by restricting it's access to local files, databases, extensions, and configurations, making it ideal for third-party tools that require stricter environment protection. Learn more about it in the [SaaS Mode documentation](https://motherduck.com/docs/key-tasks/authenticating-and-connecting-to-motherduck/authenticating-to-motherduck/#authentication-using-saas-mode).
|
|
186
|
+
|
|
187
|
+
**Secure Configuration**
|
|
188
|
+
|
|
189
|
+
```json
|
|
190
|
+
{
|
|
191
|
+
"mcpServers": {
|
|
192
|
+
"mcp-server-motherduck": {
|
|
193
|
+
"command": "uvx",
|
|
194
|
+
"args": [
|
|
195
|
+
"mcp-server-motherduck",
|
|
196
|
+
"--db-path",
|
|
197
|
+
"md:",
|
|
198
|
+
"--motherduck-token",
|
|
199
|
+
"<YOUR_READ_SCALING_TOKEN_HERE>",
|
|
200
|
+
"--saas-mode"
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
## Connect to local DuckDB
|
|
208
|
+
|
|
209
|
+
To connect to a local DuckDB, instead of using the MotherDuck token, specify the path to your local DuckDB database file or use `:memory:` for an in-memory database.
|
|
210
|
+
|
|
211
|
+
In-memory database:
|
|
212
|
+
|
|
213
|
+
```json
|
|
214
|
+
{
|
|
215
|
+
"mcpServers": {
|
|
216
|
+
"mcp-server-motherduck": {
|
|
217
|
+
"command": "uvx",
|
|
218
|
+
"args": [
|
|
219
|
+
"mcp-server-motherduck",
|
|
220
|
+
"--db-path",
|
|
221
|
+
":memory:"
|
|
222
|
+
]
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
Local DuckDB file:
|
|
229
|
+
|
|
230
|
+
```json
|
|
231
|
+
{
|
|
232
|
+
"mcpServers": {
|
|
233
|
+
"mcp-server-motherduck": {
|
|
234
|
+
"command": "uvx",
|
|
235
|
+
"args": [
|
|
236
|
+
"mcp-server-motherduck",
|
|
237
|
+
"--db-path",
|
|
238
|
+
"/path/to/your/local.db"
|
|
239
|
+
]
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
Local DuckDB file in [readonly mode](https://duckdb.org/docs/stable/connect/concurrency.html):
|
|
246
|
+
|
|
247
|
+
```json
|
|
248
|
+
{
|
|
249
|
+
"mcpServers": {
|
|
250
|
+
"mcp-server-motherduck": {
|
|
251
|
+
"command": "uvx",
|
|
252
|
+
"args": [
|
|
253
|
+
"mcp-server-motherduck",
|
|
254
|
+
"--db-path",
|
|
255
|
+
"/path/to/your/local.db",
|
|
256
|
+
"--read-only"
|
|
257
|
+
]
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
**Note**: readonly mode for local file-backed DuckDB connections also makes use of
|
|
264
|
+
short lived connections. Each time the query MCP tool is used a temporary,
|
|
265
|
+
reaodnly connection is created + query is executed + connection is closed. This
|
|
266
|
+
feature was motivated by a workflow where [DBT](https://www.getdbt.com) was for
|
|
267
|
+
modeling data within duckdb and then an MCP client (Windsurf/Cline/Claude/Cursor)
|
|
268
|
+
was used for exploring the database. The short lived connections allow each tool
|
|
269
|
+
to run and then release their connection, allowing the next tool to connect.
|
|
270
|
+
|
|
142
271
|
## Example Queries
|
|
143
272
|
|
|
144
|
-
Once configured, you can ask Claude to run queries like:
|
|
273
|
+
Once configured, you can e.g. ask Claude to run queries like:
|
|
145
274
|
|
|
146
275
|
- "Create a new database and table in MotherDuck"
|
|
147
276
|
- "Query data from my local CSV file"
|
|
@@ -182,7 +311,7 @@ If you don't specify a database path but have set the `motherduck_token` environ
|
|
|
182
311
|
|
|
183
312
|
## Running in SSE mode
|
|
184
313
|
|
|
185
|
-
The server could also be
|
|
314
|
+
The server could also be running SSE mode using `supergateway` by running the following command:
|
|
186
315
|
|
|
187
316
|
```bash
|
|
188
317
|
npx -y supergateway --stdio "uvx mcp-server-motherduck --db-path md: --motherduck-token <your_motherduck_token>"
|
|
@@ -190,6 +319,30 @@ npx -y supergateway --stdio "uvx mcp-server-motherduck --db-path md: --motherduc
|
|
|
190
319
|
|
|
191
320
|
And you can point your clients such as Claude Desktop, Cursor to this endpoint.
|
|
192
321
|
|
|
322
|
+
## Development configuration
|
|
323
|
+
|
|
324
|
+
To run the server from a local development environment, use the following configuration:
|
|
325
|
+
|
|
326
|
+
```json
|
|
327
|
+
{
|
|
328
|
+
"mcpServers": {
|
|
329
|
+
"mcp-server-motherduck": {
|
|
330
|
+
"command": "uv",
|
|
331
|
+
"args": [
|
|
332
|
+
"--directory",
|
|
333
|
+
"/path/to/your/local/mcp-server-motherduck",
|
|
334
|
+
"run",
|
|
335
|
+
"mcp-server-motherduck",
|
|
336
|
+
"--db-path",
|
|
337
|
+
"md:",
|
|
338
|
+
"--motherduck-token",
|
|
339
|
+
"<YOUR_MOTHERDUCK_TOKEN_HERE>"
|
|
340
|
+
]
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
```
|
|
345
|
+
|
|
193
346
|
## Troubleshooting
|
|
194
347
|
|
|
195
348
|
- If you encounter connection issues, verify your MotherDuck token is correct
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "mcp-server-motherduck"
|
|
3
|
-
version = "0.4.
|
|
3
|
+
version = "0.4.3"
|
|
4
4
|
description = "A MCP server for MotherDuck and local DuckDB"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.10"
|
|
7
7
|
dependencies = [
|
|
8
8
|
"mcp>=1.3.0",
|
|
9
|
-
"duckdb==1.2.
|
|
9
|
+
"duckdb==1.2.2",
|
|
10
10
|
"pandas>=2.0.0",
|
|
11
11
|
"tabulate>=0.9.0",
|
|
12
12
|
]
|
{mcp_server_motherduck-0.4.1 → mcp_server_motherduck-0.4.3}/src/mcp_server_motherduck/__init__.py
RENAMED
|
@@ -26,6 +26,11 @@ def main():
|
|
|
26
26
|
default=None,
|
|
27
27
|
help="(Default: env var `HOME`) Home directory for DuckDB",
|
|
28
28
|
)
|
|
29
|
+
parser.add_argument(
|
|
30
|
+
"--saas-mode",
|
|
31
|
+
action="store_true",
|
|
32
|
+
help="Flag for connecting to MotherDuck in SaaS mode",
|
|
33
|
+
)
|
|
29
34
|
# This is experimental and will change in the future
|
|
30
35
|
parser.add_argument(
|
|
31
36
|
"--result-format",
|
|
@@ -34,6 +39,12 @@ def main():
|
|
|
34
39
|
choices=["markdown", "duckbox", "text"],
|
|
35
40
|
)
|
|
36
41
|
|
|
42
|
+
parser.add_argument(
|
|
43
|
+
"--read-only",
|
|
44
|
+
action="store_true",
|
|
45
|
+
help="Flag for connecting to DuckDB in read-only mode. Only supported for local DuckDB databases. Also makes use of short lived connections so multiple MCP clients or other systems can remain active (though each operation must be done sequentially).",
|
|
46
|
+
)
|
|
47
|
+
|
|
37
48
|
args = parser.parse_args()
|
|
38
49
|
logger.info("🦆 MotherDuck MCP Server v" + server.SERVER_VERSION)
|
|
39
50
|
logger.info("Ready to execute SQL queries via DuckDB/MotherDuck")
|
|
@@ -45,6 +56,8 @@ def main():
|
|
|
45
56
|
motherduck_token=args.motherduck_token,
|
|
46
57
|
result_format=args.result_format,
|
|
47
58
|
home_dir=args.home_dir,
|
|
59
|
+
saas_mode=args.saas_mode,
|
|
60
|
+
read_only=args.read_only,
|
|
48
61
|
)
|
|
49
62
|
)
|
|
50
63
|
|
{mcp_server_motherduck-0.4.1 → mcp_server_motherduck-0.4.3}/src/mcp_server_motherduck/server.py
RENAMED
|
@@ -2,7 +2,7 @@ import os
|
|
|
2
2
|
import logging
|
|
3
3
|
import duckdb
|
|
4
4
|
from pydantic import AnyUrl
|
|
5
|
-
from typing import Literal
|
|
5
|
+
from typing import Literal, Optional
|
|
6
6
|
import io
|
|
7
7
|
from contextlib import redirect_stdout
|
|
8
8
|
import mcp.server.stdio
|
|
@@ -12,7 +12,7 @@ from mcp.server.models import InitializationOptions
|
|
|
12
12
|
from .prompt import PROMPT_TEMPLATE
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
SERVER_VERSION = "0.4.
|
|
15
|
+
SERVER_VERSION = "0.4.3"
|
|
16
16
|
|
|
17
17
|
logger = logging.getLogger("mcp_server_motherduck")
|
|
18
18
|
|
|
@@ -24,9 +24,12 @@ class DatabaseClient:
|
|
|
24
24
|
motherduck_token: str | None = None,
|
|
25
25
|
result_format: Literal["markdown", "duckbox", "text"] = "markdown",
|
|
26
26
|
home_dir: str | None = None,
|
|
27
|
+
saas_mode: bool = False,
|
|
28
|
+
read_only: bool = False,
|
|
27
29
|
):
|
|
30
|
+
self._read_only = read_only
|
|
28
31
|
self.db_path, self.db_type = self._resolve_db_path_type(
|
|
29
|
-
db_path, motherduck_token
|
|
32
|
+
db_path, motherduck_token, saas_mode
|
|
30
33
|
)
|
|
31
34
|
logger.info(f"Database client initialized in `{self.db_type}` mode")
|
|
32
35
|
|
|
@@ -37,11 +40,32 @@ class DatabaseClient:
|
|
|
37
40
|
self.conn = self._initialize_connection()
|
|
38
41
|
self.result_format = result_format
|
|
39
42
|
|
|
40
|
-
def _initialize_connection(self) -> duckdb.DuckDBPyConnection:
|
|
43
|
+
def _initialize_connection(self) -> Optional[duckdb.DuckDBPyConnection]:
|
|
41
44
|
"""Initialize connection to the MotherDuck or DuckDB database"""
|
|
42
45
|
|
|
43
46
|
logger.info(f"🔌 Connecting to {self.db_type} database")
|
|
44
47
|
|
|
48
|
+
if self.db_type == "duckdb" and self._read_only:
|
|
49
|
+
# check that we can connect, issue a `select 1` and then close + return None
|
|
50
|
+
try:
|
|
51
|
+
conn = duckdb.connect(
|
|
52
|
+
self.db_path,
|
|
53
|
+
config={
|
|
54
|
+
"custom_user_agent": f"mcp-server-motherduck/{SERVER_VERSION}"
|
|
55
|
+
},
|
|
56
|
+
read_only=self._read_only,
|
|
57
|
+
)
|
|
58
|
+
conn.execute("SELECT 1")
|
|
59
|
+
conn.close()
|
|
60
|
+
return None
|
|
61
|
+
except Exception as e:
|
|
62
|
+
logger.error(f"❌ Read-only check failed: {e}")
|
|
63
|
+
raise
|
|
64
|
+
|
|
65
|
+
if self._read_only:
|
|
66
|
+
raise ValueError(
|
|
67
|
+
"Read-only mode is only supported for local DuckDB databases. See `saas_mode` for similar functionality with MotherDuck."
|
|
68
|
+
)
|
|
45
69
|
conn = duckdb.connect(
|
|
46
70
|
self.db_path,
|
|
47
71
|
config={"custom_user_agent": f"mcp-server-motherduck/{SERVER_VERSION}"},
|
|
@@ -52,14 +76,24 @@ class DatabaseClient:
|
|
|
52
76
|
return conn
|
|
53
77
|
|
|
54
78
|
def _resolve_db_path_type(
|
|
55
|
-
self, db_path: str, motherduck_token: str | None = None
|
|
79
|
+
self, db_path: str, motherduck_token: str | None = None, saas_mode: bool = False
|
|
56
80
|
) -> tuple[str, Literal["duckdb", "motherduck"]]:
|
|
57
81
|
"""Resolve and validate the database path"""
|
|
58
82
|
# Handle MotherDuck paths
|
|
59
83
|
if db_path.startswith("md:"):
|
|
60
84
|
if motherduck_token:
|
|
61
85
|
logger.info("Using MotherDuck token to connect to database `md:`")
|
|
62
|
-
|
|
86
|
+
if saas_mode:
|
|
87
|
+
logger.info("Connecting to MotherDuck in SaaS mode")
|
|
88
|
+
return (
|
|
89
|
+
f"{db_path}?motherduck_token={motherduck_token}&saas_mode=true",
|
|
90
|
+
"motherduck",
|
|
91
|
+
)
|
|
92
|
+
else:
|
|
93
|
+
return (
|
|
94
|
+
f"{db_path}?motherduck_token={motherduck_token}",
|
|
95
|
+
"motherduck",
|
|
96
|
+
)
|
|
63
97
|
elif os.getenv("motherduck_token"):
|
|
64
98
|
logger.info(
|
|
65
99
|
"Using MotherDuck token from env to connect to database `md:`"
|
|
@@ -83,25 +117,37 @@ class DatabaseClient:
|
|
|
83
117
|
)
|
|
84
118
|
return db_path, "duckdb"
|
|
85
119
|
|
|
120
|
+
def _execute(self, query: str) -> str:
|
|
121
|
+
if self.conn is None:
|
|
122
|
+
# open short lived readonly connection, run query, close connection, return result
|
|
123
|
+
conn = duckdb.connect(
|
|
124
|
+
self.db_path,
|
|
125
|
+
config={"custom_user_agent": f"mcp-server-motherduck/{SERVER_VERSION}"},
|
|
126
|
+
read_only=self._read_only,
|
|
127
|
+
)
|
|
128
|
+
q = conn.execute(query)
|
|
129
|
+
else:
|
|
130
|
+
q = self.conn.execute(query)
|
|
131
|
+
|
|
132
|
+
if self.result_format == "markdown":
|
|
133
|
+
out = q.fetchdf().to_markdown()
|
|
134
|
+
elif self.result_format == "duckbox":
|
|
135
|
+
# Duckbox version of the output
|
|
136
|
+
buffer = io.StringIO()
|
|
137
|
+
with redirect_stdout(buffer):
|
|
138
|
+
q.show(max_rows=100, max_col_width=20)
|
|
139
|
+
out = buffer.getvalue()
|
|
140
|
+
else:
|
|
141
|
+
out = str(q.fetchall())
|
|
142
|
+
|
|
143
|
+
if self.conn is None:
|
|
144
|
+
conn.close()
|
|
145
|
+
|
|
146
|
+
return out
|
|
147
|
+
|
|
86
148
|
def query(self, query: str) -> str:
|
|
87
149
|
try:
|
|
88
|
-
|
|
89
|
-
# Markdown version of the output
|
|
90
|
-
logger.info(
|
|
91
|
-
f"🔍 Executing query: {query[:60]}{'...' if len(query) > 60 else ''}"
|
|
92
|
-
)
|
|
93
|
-
result = self.conn.execute(query).fetchdf().to_markdown()
|
|
94
|
-
logger.info("✅ Query executed successfully")
|
|
95
|
-
return result
|
|
96
|
-
elif self.result_format == "duckbox":
|
|
97
|
-
# Duckbox version of the output
|
|
98
|
-
buffer = io.StringIO()
|
|
99
|
-
with redirect_stdout(buffer):
|
|
100
|
-
self.conn.sql(query).show(max_rows=100, max_col_width=20)
|
|
101
|
-
return buffer.getvalue()
|
|
102
|
-
else:
|
|
103
|
-
# Text version of the output
|
|
104
|
-
return str(self.conn.execute(query).fetchall())
|
|
150
|
+
return self._execute(query)
|
|
105
151
|
|
|
106
152
|
except Exception as e:
|
|
107
153
|
raise ValueError(f"❌ Error executing query: {e}")
|
|
@@ -112,6 +158,8 @@ async def main(
|
|
|
112
158
|
motherduck_token: str | None = None,
|
|
113
159
|
result_format: Literal["markdown", "duckbox", "text"] = "markdown",
|
|
114
160
|
home_dir: str | None = None,
|
|
161
|
+
saas_mode: bool = False,
|
|
162
|
+
read_only: bool = False,
|
|
115
163
|
):
|
|
116
164
|
logger.info("Starting MotherDuck MCP Server")
|
|
117
165
|
server = Server("mcp-server-motherduck")
|
|
@@ -120,6 +168,8 @@ async def main(
|
|
|
120
168
|
result_format=result_format,
|
|
121
169
|
motherduck_token=motherduck_token,
|
|
122
170
|
home_dir=home_dir,
|
|
171
|
+
saas_mode=saas_mode,
|
|
172
|
+
read_only=read_only,
|
|
123
173
|
)
|
|
124
174
|
|
|
125
175
|
logger.info("Registering handlers")
|
|
@@ -62,42 +62,42 @@ wheels = [
|
|
|
62
62
|
|
|
63
63
|
[[package]]
|
|
64
64
|
name = "duckdb"
|
|
65
|
-
version = "1.2.
|
|
65
|
+
version = "1.2.2"
|
|
66
66
|
source = { registry = "https://pypi.org/simple" }
|
|
67
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
67
|
+
sdist = { url = "https://files.pythonhosted.org/packages/28/b8/0f86278684fb7a1fac7c0c869fc6d68ed005cdc91c963eb4373e0551bc0a/duckdb-1.2.2.tar.gz", hash = "sha256:1e53555dece49201df08645dbfa4510c86440339889667702f936b7d28d39e43", size = 11595514 }
|
|
68
68
|
wheels = [
|
|
69
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
70
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
71
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
72
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
73
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
74
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
75
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
76
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
77
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
78
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
79
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
80
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
81
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
82
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
83
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
84
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
85
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
86
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
87
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
88
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
89
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
90
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
91
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
92
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
93
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
94
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
95
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
96
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
97
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
98
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
99
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
100
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
69
|
+
{ url = "https://files.pythonhosted.org/packages/cc/47/d17eecc8bf23519f4385a7ad361482e5791f6b94995a50839f130c469626/duckdb-1.2.2-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:6e5e6c333b550903ff11919ed1154c60c9b9d935db51afdb263babe523a8a69e", size = 15255351 },
|
|
70
|
+
{ url = "https://files.pythonhosted.org/packages/bd/d1/317397198e0481339c469441762ce4e563f612479c2be70ddba3c1493bf2/duckdb-1.2.2-cp310-cp310-macosx_12_0_universal2.whl", hash = "sha256:c1fcbc579de8e4fa7e34242fd6f419c1a39520073b1fe0c29ed6e60ed5553f38", size = 31925074 },
|
|
71
|
+
{ url = "https://files.pythonhosted.org/packages/3d/e2/9f8cfa9d8a8d1370ae2b5cf0c6a34e6adc51be533771fd75b5ff84fb2441/duckdb-1.2.2-cp310-cp310-macosx_12_0_x86_64.whl", hash = "sha256:690885060c4140922ffa2f6935291c6e74ddad0ca2cf33bff66474ce89312ab3", size = 16779904 },
|
|
72
|
+
{ url = "https://files.pythonhosted.org/packages/e6/47/3651b1ab62b6e8ce15a1ead5d81d4bc76b09912c2ae0b11aa0bbcbd0209d/duckdb-1.2.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8a382782980643f5ee827990b76f079b22f47786509061c0afac28afaa5b8bf5", size = 18726556 },
|
|
73
|
+
{ url = "https://files.pythonhosted.org/packages/6d/66/6b2a433d042a3a5109c1a62a4daaea40b908e7876756aed2837adaf0ca26/duckdb-1.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7c33345570ed8c50c9fe340c2767470115cc02d330f25384104cfad1f6e54f5", size = 20195269 },
|
|
74
|
+
{ url = "https://files.pythonhosted.org/packages/a3/38/1737151fba968c0e7221b68d11c80ed9ff63edf380d91058426b51f1b233/duckdb-1.2.2-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b744f8293ce649d802a9eabbf88e4930d672cf9de7d4fc9af5d14ceaeeec5805", size = 18737528 },
|
|
75
|
+
{ url = "https://files.pythonhosted.org/packages/b3/37/bfde2ea14353a297e7effe9e4688b4e60a3ec08a9bd67c404c64046e5d9e/duckdb-1.2.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:c8680e81b0c77be9fc968c1dd4cd38395c34b18bb693cbfc7b7742c18221cc9b", size = 22254571 },
|
|
76
|
+
{ url = "https://files.pythonhosted.org/packages/f0/42/392736bfd62b5b5f0d9ea15b010c90a8c92c21fdfc4372e46160f3d8f680/duckdb-1.2.2-cp310-cp310-win_amd64.whl", hash = "sha256:fb41f2035a70378b3021f724bb08b047ca4aa475850a3744c442570054af3c52", size = 11366201 },
|
|
77
|
+
{ url = "https://files.pythonhosted.org/packages/c1/41/78c63937a4f7a5de7d128203c567303d4813c1109b7d17e6b3959f0882e1/duckdb-1.2.2-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:081110ffbc9d53c9740ef55482c93b97db2f8030d681d1658827d2e94f77da03", size = 15258298 },
|
|
78
|
+
{ url = "https://files.pythonhosted.org/packages/94/b2/91d983ecd67a1b87343e98395ffe7d77c996e1798c1bab339beed4680693/duckdb-1.2.2-cp311-cp311-macosx_12_0_universal2.whl", hash = "sha256:53a154dbc074604036a537784ce5d1468edf263745a4363ca06fdb922f0d0a99", size = 31933969 },
|
|
79
|
+
{ url = "https://files.pythonhosted.org/packages/ad/12/4737b682cbc1b4778ffb37e4f4cdb603676c50aec89d6c9781ec29d3e904/duckdb-1.2.2-cp311-cp311-macosx_12_0_x86_64.whl", hash = "sha256:0353f80882c066f7b14451852395b7a360f3d4846a10555c4268eb49144ea11c", size = 16784775 },
|
|
80
|
+
{ url = "https://files.pythonhosted.org/packages/71/be/dfb52b579a0b82aa92993aecc100bd951d0bd1850c6a8d47c68953a9de62/duckdb-1.2.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b134a5002757af1ae44a9ae26c2fe963ffa09eb47a62779ce0c5eeb44bfc2f28", size = 18731124 },
|
|
81
|
+
{ url = "https://files.pythonhosted.org/packages/ca/49/153dd6289a3d06e87c3199a5547ccc04c574d167d7f85c1a8196218bf040/duckdb-1.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd9c434127fd1575694e1cf19a393bed301f5d6e80b4bcdae80caa368a61a678", size = 20199712 },
|
|
82
|
+
{ url = "https://files.pythonhosted.org/packages/97/ce/f27a7b735a8abb04e2c1efcc05178e25e455539c74d70f76c2845bae8473/duckdb-1.2.2-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:890f58855d127c25bc3a53f4c24b27e79391c4468c4fcc99bc10d87b5d4bd1c4", size = 18739966 },
|
|
83
|
+
{ url = "https://files.pythonhosted.org/packages/d8/f2/a8066267eb5fcd1f535776efde29b6d0fa678d978a7de73f47bc59cc940d/duckdb-1.2.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:9a5002305cdd4e76c94b61b50abc5e3f4e32c9cb81116960bb4b74acbbc9c6c8", size = 22255946 },
|
|
84
|
+
{ url = "https://files.pythonhosted.org/packages/df/74/8a05ef00c554882d8300c2c261e8f7e7ead74e2b3ff66059599ff2646cf4/duckdb-1.2.2-cp311-cp311-win_amd64.whl", hash = "sha256:cdb9999c6a109aa31196cdd22fc58a810a3d35d08181a25d1bf963988e89f0a5", size = 11368173 },
|
|
85
|
+
{ url = "https://files.pythonhosted.org/packages/77/25/549f68e55e1b455bd2daf2e5fc912000a3139fe0395111b3d49b23a2cec1/duckdb-1.2.2-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:f745379f44ad302560688855baaed9739c03b37a331338eda6a4ac655e4eb42f", size = 15271882 },
|
|
86
|
+
{ url = "https://files.pythonhosted.org/packages/f6/84/13de7bf9056dcc7a346125d9a9f0f26f76c633db6b54052738f78f828538/duckdb-1.2.2-cp312-cp312-macosx_12_0_universal2.whl", hash = "sha256:087713fc5958cae5eb59097856b3deaae0def021660c8f2052ec83fa8345174a", size = 31964873 },
|
|
87
|
+
{ url = "https://files.pythonhosted.org/packages/0f/53/c8d2d56a801b7843ea87f8533a3634e6b38f06910098a266f8a096bd4c61/duckdb-1.2.2-cp312-cp312-macosx_12_0_x86_64.whl", hash = "sha256:a1f96395319c447a31b9477881bd84b4cb8323d6f86f21ceaef355d22dd90623", size = 16800653 },
|
|
88
|
+
{ url = "https://files.pythonhosted.org/packages/bb/36/e25791d879fb93b92a56bf481ce11949ab19109103ae2ba12d64e49355d9/duckdb-1.2.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6aba3bc0acf4f8d52b94f7746c3b0007b78b517676d482dc516d63f48f967baf", size = 18735524 },
|
|
89
|
+
{ url = "https://files.pythonhosted.org/packages/d7/46/4745aa10a1e460f4c8b473eddaffe2c783ac5280e1e5929dd84bd1a1acde/duckdb-1.2.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e5c1556775a9ebaa49b5c8d64718f155ac3e05b34a49e9c99443cf105e8b0371", size = 20210314 },
|
|
90
|
+
{ url = "https://files.pythonhosted.org/packages/ff/0d/8563fc5ece36252e3d07dd3d29c7a0a034dcf62f14bed7cdc016d95adcbe/duckdb-1.2.2-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d625cc7d2faacfb2fc83ebbe001ae75dda175b3d8dce6a51a71c199ffac3627a", size = 18755134 },
|
|
91
|
+
{ url = "https://files.pythonhosted.org/packages/11/f1/b7ade7d980eee4fb3ad7469ccf23adb3668a9a28cf3989b24418392d3786/duckdb-1.2.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:73263f81545c5cb4360fbaf7b22a493e55ddf88fadbe639c43efb7bc8d7554c4", size = 22294397 },
|
|
92
|
+
{ url = "https://files.pythonhosted.org/packages/eb/c9/896e8ced7b408df81e015fe0c6497cda46c92d9dfc8bf84b6d13f5dad473/duckdb-1.2.2-cp312-cp312-win_amd64.whl", hash = "sha256:b1c0c4d737fd2ab9681e4e78b9f361e0a827916a730e84fa91e76dca451b14d5", size = 11370381 },
|
|
93
|
+
{ url = "https://files.pythonhosted.org/packages/41/31/5e2f68cbd000137f6ed52092ad83a8e9c09eca70c59e0b4c5eb679709997/duckdb-1.2.2-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:fb9a2c77236fae079185a990434cb9d8432902488ba990235c702fc2692d2dcd", size = 15272507 },
|
|
94
|
+
{ url = "https://files.pythonhosted.org/packages/d2/15/aa9078fc897e744e077c0c1510e34db4c809de1d51ddb5cb62e1f9c61312/duckdb-1.2.2-cp313-cp313-macosx_12_0_universal2.whl", hash = "sha256:d8bb89e580cb9a3aaf42e4555bf265d3db9446abfb118e32150e1a5dfa4b5b15", size = 31965548 },
|
|
95
|
+
{ url = "https://files.pythonhosted.org/packages/9f/28/943773d44fd97055c59b58dde9182733661c2b6e3b3549f15dc26b2e139e/duckdb-1.2.2-cp313-cp313-macosx_12_0_x86_64.whl", hash = "sha256:88916d7f0532dc926bed84b50408c00dcbe6d2097d0de93c3ff647d8d57b4f83", size = 16800600 },
|
|
96
|
+
{ url = "https://files.pythonhosted.org/packages/39/51/2caf01e7791e490290798c8c155d4d702ed61d69e815915b42e72b3e7473/duckdb-1.2.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:30bece4f58a6c7bb0944a02dd1dc6de435a9daf8668fa31a9fe3a9923b20bd65", size = 18735886 },
|
|
97
|
+
{ url = "https://files.pythonhosted.org/packages/87/0c/48ae1d485725af3a452303af409a9022d751ecab260cb9ca2f8c9fb670bc/duckdb-1.2.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2bd2c6373b8b54474724c2119f6939c4568c428e1d0be5bcb1f4e3d7f1b7c8bb", size = 20210481 },
|
|
98
|
+
{ url = "https://files.pythonhosted.org/packages/69/c7/95fcd7bde0f754ea6700208d36b845379cbd2b28779c0eff4dd4a7396369/duckdb-1.2.2-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:72f688a8b0df7030c5a28ca6072817c1f090979e08d28ee5912dee37c26a7d0c", size = 18756619 },
|
|
99
|
+
{ url = "https://files.pythonhosted.org/packages/ad/1b/c9eab9e84d4a70dd5f7e2a93dd6e9d7b4d868d3df755cd58b572d82d6c5d/duckdb-1.2.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:26e9c349f56f7c99341b5c79bbaff5ba12a5414af0261e79bf1a6a2693f152f6", size = 22294667 },
|
|
100
|
+
{ url = "https://files.pythonhosted.org/packages/3f/3d/ce68db53084746a4a62695a4cb064e44ce04123f8582bb3afbf6ee944e16/duckdb-1.2.2-cp313-cp313-win_amd64.whl", hash = "sha256:e1aec7102670e59d83512cf47d32a6c77a79df9df0294c5e4d16b6259851e2e9", size = 11370206 },
|
|
101
101
|
]
|
|
102
102
|
|
|
103
103
|
[[package]]
|
|
@@ -185,7 +185,7 @@ wheels = [
|
|
|
185
185
|
|
|
186
186
|
[[package]]
|
|
187
187
|
name = "mcp-server-motherduck"
|
|
188
|
-
version = "0.4.
|
|
188
|
+
version = "0.4.3"
|
|
189
189
|
source = { editable = "." }
|
|
190
190
|
dependencies = [
|
|
191
191
|
{ name = "duckdb" },
|
|
@@ -196,7 +196,7 @@ dependencies = [
|
|
|
196
196
|
|
|
197
197
|
[package.metadata]
|
|
198
198
|
requires-dist = [
|
|
199
|
-
{ name = "duckdb", specifier = "==1.2.
|
|
199
|
+
{ name = "duckdb", specifier = "==1.2.2" },
|
|
200
200
|
{ name = "mcp", specifier = ">=1.3.0" },
|
|
201
201
|
{ name = "pandas", specifier = ">=2.0.0" },
|
|
202
202
|
{ name = "tabulate", specifier = ">=0.9.0" },
|
{mcp_server_motherduck-0.4.1 → mcp_server_motherduck-0.4.3}/.github/workflows/python-publish.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mcp_server_motherduck-0.4.1 → mcp_server_motherduck-0.4.3}/src/mcp_server_motherduck/prompt.py
RENAMED
|
File without changes
|