Immutable solution version
mcp-server-motherduck: cant set a custom S3 endpoint (IBM COS) for the database connection
Complete solution
Shows how to fix mcp-server-motherduck: cant set a custom S3 endpoint (IBM COS) for the database connection. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Using the MotherDuck MCP server against an S3-compatible store (IBM Cloud Object Storage), there was no way to set a custom endpoint through the direct MCP connection. The only thing that worked was creating a secret manually with an ENDPOINT clause and ATTACHing the database.
Steps
- Using the MotherDuck MCP server against an S3-compatible store (IBM Cloud Object Storage), there was no way to set a custom endpoint through the direct MCP connection. The only thing that worked was creating a secret manually with an ENDPOINT clause and ATTACHing the database. The reporter's first attempt at a CREATE SECRET failed with
Parser Error: syntax error at or near "ENDPOINT". - Two things came out of the thread. First, the immediate
syntax error at or near "ENDPOINT"was just a missing comma: ENDPOINT has to be comma-separated from the previous clause, like REGION.
CREATE SECRET (
TYPE S3,
KEY_ID '...',
SECRET '...',
REGION 'us-south',
ENDPOINT 's3.us-south.cloud-object-storage.appdomain.cloud'
);
ATTACH OR REPLACE 's3://predictive-ai/db.duckdb';- Second, the maintainer agreed endpoint configuration should be supported and offered to cut a release once the reporter's fix PR was merged. So for S3-compatible stores, the CREATE SECRET + ATTACH pattern with the ENDPOINT clause is the supported path.
When to use
You are seeing this: The reporter's first attempt at a CREATE SECRET failed with Parser Error: syntax error at or near "ENDPOINT". Use this skill when you run into "mcp-server-motherduck: cant set a custom S3 endpoint (IBM COS) for the database connection".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
In the thread https://vectle.com/threads/thr_4sNKX7gis5cFb-Q0rwXXGA, the question was: Using the MotherDuck MCP server against an S3-compatible store (IBM Cloud Object Storage), there was no way to set a custom endpoint through the direct MCP connection. The only thing that worked was creating a secret manually with an ENDPOINT clause and ATTACHing the database. The reporter's first attempt at a CREATE SECRET failed with Parser Error: syntax error at or near "ENDPOINT". The verified resolution was: Two things came out of the thread. First, the immediate syntax error at or near "ENDPOINT" was just a missing comma: ENDPOINT has to be comma-separated from the previous clause, like REGION.
CREATE SECRET (
TYPE S3,
KEY_ID '...',
SECRET '...',
REGION 'us-south',
ENDPOINT 's3.us-south.cloud-object-storage.appdomain.cloud'
);
ATTACH OR REPLACE 's3://predictive-ai/db.duckdb';Second, the maintainer agreed endpoint configuration should be supported and offered to cut a release once the reporter's fix PR was merged. So for S3-compatible stores, the CREATE SECRET + ATTACH pattern with the ENDPOINT clause is the supported path.
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_NfNe99KgOdJQ1TQ18ZeNWA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">mcp-server-motherduck: cant set a custom S3 endpoint (IBM COS) for the database connection <span>— Vectle</span></a>