timesfm
TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.
ยังไม่มีคำอธิบายภาษาไทย ดูข้อเท็จจริงด้านล่าง หรือเปิดคำอธิบายต้นฉบับจากผู้ทำ
Governed ClickHouse analytics for agents: named datasets and metrics as tools, never raw SQL.Skill ที่สอน AI ทำงานแบบนี้ ใช้ร่วมกับตัวนี้ได้
TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ผลตรวจผ่าน 2/3 · ทำงานบนเครื่องคุณ · ✓ ตรวจคำสั่งแล้ว 16 พ.ย. 2569
ขั้นแรก: คุณใช้ AI ตัวไหน
เลือกแอปที่คุณใช้ ขั้นตอนจะขึ้นด้านล่าง
ต่อกับ Claude ได้ แต่ต้องเตรียมก่อน
ต้องลง Node.js ในเครื่องก่อน (ทำครั้งเดียว) · ใช้ได้เฉพาะแอป Claude บนคอม (Windows หรือ Mac) ไม่ใช่บนเว็บหรือมือถือ
คัดลอกข้อความนี้ไปวางในแชตของ Claude AI จะเช็กเครื่อง บอกว่าจะแก้ไฟล์ไหน และรอคุณตกลงก่อนทุกครั้ง
ช่วยติดตั้ง MCP server ชื่อ hypequery ClickHouse ให้ Claude ในเครื่องนี้ ทำตามลำดับ 1) เช็กว่ามี Node.js ด้วยคำสั่ง node -v ถ้าไม่มี ให้บอกฉันไปลงจาก https://nodejs.org/en/download ห้ามลงเอง 2) ใช้คอนฟิกนี้เท่านั้น (ผ่านตัวตรวจของ PopNx MCP แล้ว): { "mcpServers": { "hypequery": { "command": "npx", "args": [ "-y", "@hypequery/mcp", "--config", "ใส่ค่าของคุณ" ] } } } 3) บอก path เต็มของไฟล์ที่จะแก้ หรือคำสั่งที่จะรัน แล้วรอฉันตกลงก่อน 4) ไม่ต้องใช้คีย์ 5) ทำตามที่ตกลง แล้วตรวจว่าเครื่องมือของ hypequery ClickHouse ขึ้นจริงข้อความนี้ไม่มีคีย์ของคุณ ถ้าต้องใช้คีย์ AI จะบอกให้คุณวางเองในไฟล์หรือช่องของแอป
ลงไว้แล้วหรือยัง? เช็กก่อน · เปิด Terminal แล้วพิมพ์คำสั่งนี้ กด Enter
node -vMac: กด ⌘ + Space พิมพ์ Terminal แล้วกด Enter
Windows: เปิดเมนู Start พิมพ์ Windows PowerShell แล้วกด Open
ยังไม่ได้ลง: เปิดหน้าดาวน์โหลดทางการ เลือกรุ่น LTS แล้วเลือกตัวติดตั้งแบบกดเอง: Mac ไฟล์ .pkg · Windows ไฟล์ .msi ดับเบิลคลิกแล้วกดถัดไปจนจบ ไม่ต้องใช้คำสั่ง curl
ลงเสร็จแล้ว ปิด Terminal เปิดใหม่ แล้วพิมพ์คำสั่งเดิมอีกครั้ง ต้องขึ้นเลขรุ่น: node -v
ลงครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ Node.js
SettingsDeveloperEdit Config
{
"mcpServers": {
"hypequery": {
"command": "npx",
"args": [
"-y",
"@hypequery/mcp",
"--config",
"ใส่ค่าของคุณ"
]
}
}
}ใช้ hypequery ClickHouse บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง✓ ถ้า Claude บอกว่ากำลังใช้ hypequery ClickHouse หรือมีชื่อเครื่องมือของ hypequery ClickHouse ขึ้นในคำตอบ แปลว่าต่อสำเร็จ
ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Anthropic เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป
ChatGPT ยังต่อ hypequery ClickHouse ไม่ได้
hypequery ClickHouse ต้องติดตั้งในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะตัวที่ทำงานบนเว็บ
ก · ใช้แอปที่ต่อ hypequery ClickHouse ได้
ข · ตัวอื่นในหมวด ฐานข้อมูลและชุดข้อมูล ที่ต่อกับ ChatGPT ได้
เลือกจากตัวที่ใช้มากในหมวดเดียวกัน เฉพาะตัวที่ต่อด้วยที่อยู่ได้โดยไม่ต้องใส่คีย์
ต่อกับ Claude Code ได้ แต่ต้องเตรียมก่อน
ต้องลง Node.js ในเครื่องก่อน (ทำครั้งเดียว)
คัดลอกข้อความนี้ไปวางในแชตของ Claude Code AI จะเช็กเครื่อง บอกว่าจะแก้ไฟล์ไหน และรอคุณตกลงก่อนทุกครั้ง
ช่วยติดตั้ง MCP server ชื่อ hypequery ClickHouse ให้ Claude Code ในเครื่องนี้ ทำตามลำดับ 1) เช็กว่ามี Node.js ด้วยคำสั่ง node -v ถ้าไม่มี ให้บอกฉันไปลงจาก https://nodejs.org/en/download ห้ามลงเอง 2) ใช้คอนฟิกนี้เท่านั้น (ผ่านตัวตรวจของ PopNx MCP แล้ว): claude mcp add --scope user hypequery -- npx -y @hypequery/mcp --config 'ใส่ค่าของคุณ' 3) บอก path เต็มของไฟล์ที่จะแก้ หรือคำสั่งที่จะรัน แล้วรอฉันตกลงก่อน 4) ไม่ต้องใช้คีย์ 5) ทำตามที่ตกลง แล้วตรวจว่าเครื่องมือของ hypequery ClickHouse ขึ้นจริงข้อความนี้ไม่มีคีย์ของคุณ ถ้าต้องใช้คีย์ AI จะบอกให้คุณวางเองในไฟล์หรือช่องของแอป
ลงไว้แล้วหรือยัง? เช็กก่อน · เปิด Terminal แล้วพิมพ์คำสั่งนี้ กด Enter
node -vMac: กด ⌘ + Space พิมพ์ Terminal แล้วกด Enter
Windows: เปิดเมนู Start พิมพ์ Windows PowerShell แล้วกด Open
ยังไม่ได้ลง: เปิดหน้าดาวน์โหลดทางการ เลือกรุ่น LTS แล้วเลือกตัวติดตั้งแบบกดเอง: Mac ไฟล์ .pkg · Windows ไฟล์ .msi ดับเบิลคลิกแล้วกดถัดไปจนจบ ไม่ต้องใช้คำสั่ง curl
ลงเสร็จแล้ว ปิด Terminal เปิดใหม่ แล้วพิมพ์คำสั่งเดิมอีกครั้ง ต้องขึ้นเลขรุ่น: node -v
ลงครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ Node.js
Mac: กด Command+Space พิมพ์ Terminal · Windows: เปิด PowerShell
claude mcp add --scope user hypequery -- npx -y @hypequery/mcp --config 'ใส่ค่าของคุณ'ต้องเห็น hypequery ClickHouse ในรายการและขึ้นว่าเชื่อมต่อแล้ว
ใช้ hypequery ClickHouse บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง✓ ถ้า Claude Code บอกว่ากำลังใช้ hypequery ClickHouse หรือมีชื่อเครื่องมือของ hypequery ClickHouse ขึ้นในคำตอบ แปลว่าต่อสำเร็จ
ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Anthropic เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป
ต่อกับ Cursor ได้ แต่ต้องเตรียมก่อน
ต้องลง Node.js ในเครื่องก่อน (ทำครั้งเดียว) · ไม่มีปุ่มกดทีเดียว ต้องวางค่าตั้งและกรอกค่าเอง
คัดลอกข้อความนี้ไปวางในแชตของ Cursor AI จะเช็กเครื่อง บอกว่าจะแก้ไฟล์ไหน และรอคุณตกลงก่อนทุกครั้ง
ช่วยติดตั้ง MCP server ชื่อ hypequery ClickHouse ให้ Cursor ในเครื่องนี้ ทำตามลำดับ 1) เช็กว่ามี Node.js ด้วยคำสั่ง node -v ถ้าไม่มี ให้บอกฉันไปลงจาก https://nodejs.org/en/download ห้ามลงเอง 2) ใช้คอนฟิกนี้เท่านั้น (ผ่านตัวตรวจของ PopNx MCP แล้ว): { "mcpServers": { "hypequery": { "command": "npx", "args": [ "-y", "@hypequery/mcp", "--config", "ใส่ค่าของคุณ" ] } } } 3) บอก path เต็มของไฟล์ที่จะแก้ หรือคำสั่งที่จะรัน แล้วรอฉันตกลงก่อน 4) ไม่ต้องใช้คีย์ 5) ทำตามที่ตกลง แล้วตรวจว่าเครื่องมือของ hypequery ClickHouse ขึ้นจริงข้อความนี้ไม่มีคีย์ของคุณ ถ้าต้องใช้คีย์ AI จะบอกให้คุณวางเองในไฟล์หรือช่องของแอป
ลงไว้แล้วหรือยัง? เช็กก่อน · เปิด Terminal แล้วพิมพ์คำสั่งนี้ กด Enter
node -vMac: กด ⌘ + Space พิมพ์ Terminal แล้วกด Enter
Windows: เปิดเมนู Start พิมพ์ Windows PowerShell แล้วกด Open
ยังไม่ได้ลง: เปิดหน้าดาวน์โหลดทางการ เลือกรุ่น LTS แล้วเลือกตัวติดตั้งแบบกดเอง: Mac ไฟล์ .pkg · Windows ไฟล์ .msi ดับเบิลคลิกแล้วกดถัดไปจนจบ ไม่ต้องใช้คำสั่ง curl
ลงเสร็จแล้ว ปิด Terminal เปิดใหม่ แล้วพิมพ์คำสั่งเดิมอีกครั้ง ต้องขึ้นเลขรุ่น: node -v
ลงครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ Node.js
~/.cursor/mcp.json
วางค่าตั้งนี้ กรอกค่าที่ว่างไว้ แล้วบันทึกไฟล์
{
"mcpServers": {
"hypequery": {
"command": "npx",
"args": [
"-y",
"@hypequery/mcp",
"--config",
"ใส่ค่าของคุณ"
]
}
}
}ใช้ hypequery ClickHouse บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง✓ ถ้า Cursor บอกว่ากำลังใช้ hypequery ClickHouse หรือมีชื่อเครื่องมือของ hypequery ClickHouse ขึ้นในคำตอบ แปลว่าต่อสำเร็จ
ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Cursor เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป
ต่อกับ VS Code ได้ แต่ต้องเตรียมก่อน
ต้องลง Node.js ในเครื่องก่อน (ทำครั้งเดียว) · ไม่มีปุ่มกดทีเดียว ต้องวางค่าตั้งและกรอกค่าเอง
คัดลอกข้อความนี้ไปวางในแชตของ VS Code AI จะเช็กเครื่อง บอกว่าจะแก้ไฟล์ไหน และรอคุณตกลงก่อนทุกครั้ง
ช่วยติดตั้ง MCP server ชื่อ hypequery ClickHouse ให้ VS Code ในเครื่องนี้ ทำตามลำดับ 1) เช็กว่ามี Node.js ด้วยคำสั่ง node -v ถ้าไม่มี ให้บอกฉันไปลงจาก https://nodejs.org/en/download ห้ามลงเอง 2) ใช้คอนฟิกนี้เท่านั้น (ผ่านตัวตรวจของ PopNx MCP แล้ว): { "servers": { "hypequery": { "type": "stdio", "command": "npx", "args": [ "-y", "@hypequery/mcp", "--config", "ใส่ค่าของคุณ" ] } } } 3) บอก path เต็มของไฟล์ที่จะแก้ หรือคำสั่งที่จะรัน แล้วรอฉันตกลงก่อน 4) ไม่ต้องใช้คีย์ 5) ทำตามที่ตกลง แล้วตรวจว่าเครื่องมือของ hypequery ClickHouse ขึ้นจริงข้อความนี้ไม่มีคีย์ของคุณ ถ้าต้องใช้คีย์ AI จะบอกให้คุณวางเองในไฟล์หรือช่องของแอป
ลงไว้แล้วหรือยัง? เช็กก่อน · เปิด Terminal แล้วพิมพ์คำสั่งนี้ กด Enter
node -vMac: กด ⌘ + Space พิมพ์ Terminal แล้วกด Enter
Windows: เปิดเมนู Start พิมพ์ Windows PowerShell แล้วกด Open
ยังไม่ได้ลง: เปิดหน้าดาวน์โหลดทางการ เลือกรุ่น LTS แล้วเลือกตัวติดตั้งแบบกดเอง: Mac ไฟล์ .pkg · Windows ไฟล์ .msi ดับเบิลคลิกแล้วกดถัดไปจนจบ ไม่ต้องใช้คำสั่ง curl
ลงเสร็จแล้ว ปิด Terminal เปิดใหม่ แล้วพิมพ์คำสั่งเดิมอีกครั้ง ต้องขึ้นเลขรุ่น: node -v
ลงครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ Node.js
MCP: Open User Configuration
วางค่าตั้งนี้ กรอกค่าที่ว่างไว้ แล้วบันทึกไฟล์
{
"servers": {
"hypequery": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@hypequery/mcp",
"--config",
"ใส่ค่าของคุณ"
]
}
}
}ใช้ hypequery ClickHouse บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง✓ ถ้า VS Code บอกว่ากำลังใช้ hypequery ClickHouse หรือมีชื่อเครื่องมือของ hypequery ClickHouse ขึ้นในคำตอบ แปลว่าต่อสำเร็จ
ชื่อเมนูตรวจกับหน้าช่วยเหลือของ VS Code เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป
Claude Code
claude mcp add --scope user hypequery -- npx -y @hypequery/mcp --config 'ใส่ค่าของคุณ'Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"hypequery": {
"command": "npx",
"args": [
"-y",
"@hypequery/mcp",
"--config",
"ใส่ค่าของคุณ"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"hypequery": {
"command": "npx",
"args": [
"-y",
"@hypequery/mcp",
"--config",
"ใส่ค่าของคุณ"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"hypequery": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@hypequery/mcp",
"--config",
"ใส่ค่าของคุณ"
]
}
}
}ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
npm: @hypequery/mcpดูจากแบบการต่อของ server ตัวนี้ และเอกสารของผู้ทำโปรแกรมแต่ละตัว ตรวจเมื่อ 10 พ.ย. 2569
ติดตั้งบนเครื่องได้ใน
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 16 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub hypequery ซึ่งเป็นเจ้าของ repo
มีการแก้โค้ดล่าสุด เมื่อวาน
GitHub อ่านชนิด license ไม่ออก ต้องเปิดไฟล์ดูเอง
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
ยังไม่ได้ตรวจ
ถาม แชร์เคล็ดลับ หรือแจ้งว่าใช้ไม่ได้ เรียงตามที่คนกดว่ามีประโยชน์
ยังไม่มีใครโพสต์ ถามหรือแชร์เป็นคนแรกได้เลย
ข้อความในส่วนนี้เขียนโดยผู้ใช้ ไม่ใช่ทีม PopNx
ยังไม่มีรีวิว
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 2 จาก 3 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด เมื่อวาน และส่งรุ่นล่าสุด (0.14.0) เข้า registry วันนี้
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี QueryWeaver, Supabase, Neon, DBCode, Keboola MCP
หมวดเดียวกันจากผู้ทำคนอื่น ผ่านตัวตรวจคำสั่งแล้ว ตัวทางการขึ้นก่อน แล้วเรียงตามดาว
อ่านการ์ด:↓ ดาวน์โหลดต่อสัปดาห์i★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
An MCP server for Text2SQL: transforms natural language into SQL using graph schema understanding.
server ทางการของ Supabase ให้ AI สร้างตาราง ถามข้อมูล และดูการตั้งค่าโปรเจกต์ในฐานข้อมูล Supabase ของคุณ
Official Neon MCP server for managing Neon projects and Lakebase Postgres databases.
Query and explore 100+ databases through your DBCode connections.
Connect your AI assistants to Keboola and expose your data, transformations, SQL queries, ...
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
A ClickHouse MCP server for Claude Code, Cursor, Codex and other AI agents. Agents query the datasets and metrics you define, never raw SQL. Run it in five minutes against the public ClickHouse playground: hypequery.com/clickhouse-mcp.
@hypequery/mcp turns your hypequery datasets and metrics into Model Context Protocol tools for Claude, Cursor, and other MCP clients. Agents can discover and query approved analytics without receiving unrestricted SQL access or database credentials.
npm install @hypequery/mcp @hypequery/datasets @hypequery/clickhouse
// mcp-config.ts
import { publishDatasets } from '@hypequery/datasets';
export const datasets = publishDatasets() .publish(Orders, { metrics: { revenue } }) .build();
export const analytics = createDatasetClient({ queryBuilder: db });
Compile the config, then start the stdio server:
npx hypequery-mcp --config /absolute/path/to/mcp-config.js
Add it to an MCP client:
{
"mcpServers": { "hypequery-clickhouse": { "command": "npx", "args": [ "hypequery-mcp", "--config", "/absolute/path/to/mcp-config.js" ] } } }
Now an agent can ask, “Show revenue by region for the last month,” using the same metric definition as your backend and dashboard.
An existing Python server can own definitions, authorization, tenancy and SQL. Opt its dataset/metric routes into ClientQueryProfile and install add_client_contract_endpoint from hypequery.serve. The MCP bridge consumes that endpoint's authorized view; an offline build export cannot be used as live discovery. No Node dataset registry or Python application import is needed.
import {
createMCPHttpExecutor, createMCPProtocolServer, connectMCPServerStdio, } from '@hypequery/mcp';
const url = process.env.HYPEQUERY_CLIENT_CONTRACT_URL; const token = process.env.HYPEQUERY_API_KEY; if (!url || !token) throw new Error('Configure the backend discovery URL and credential.');
const executor = await createMCPHttpExecutor({ url, headers: { authorization: Bearer ${token} }, }); await connectMCPServerStdio(createMCPProtocolServer({ executor }));
The URL is the full discovery endpoint, including its mount prefix. HTTPS is required except for loopback development. URLs cannot contain credentials, queries or fragments. Keep one executor/session per principal; a headers resolver may rotate credentials for that same principal. Browser code must never contain this server credential. To serve the bridge to remote agents, see "Serve over Streamable HTTP" below.
The four tool names stay the same. HTTP mode preserves each authorized endpoint's own dimensions, filters, defaults, time controls and limits. Metric-only groups have queryable: false; inspecting them does not invent a dataset query route. Introspection returns endpoint profiles rather than merging permissions into a synthetic dataset. Unsupported segments, SQL/debug options and caller-selected tenants, tokens, origins or routes are rejected before backend requests.
HTTP query responses preserve the public backend envelope: data, plus optional meta with request ID, timing, row count, pagination and optional cache.hit. Set includeMeta: true when the endpoint advertises metadata and use pagination.hasMore with offset + limit to page. This differs from the existing local executor's cache-status metadata; each mode advertises its actual output schema. Returned rows must contain exactly the selected fields with their advertised scalar/null types. Private diagnostics or unexpected fields fail closed instead of being forwarded to the agent.
The bridge rechecks its authorized view before discovery, prompts and execution, and pins each POST to the validated endpoint schema. View changes or backend 409s invalidate the session: construct a new executor/reconnect explicitly. No query is automatically replayed with new semantics. Backend authorization is still checked on every request, including after discovery.
Budgets default to 30 seconds, 256 KiB discovery/manifests and 1 MiB query responses. HTTP mode has a hard 1 MiB response ceiling, 1,000 rows/filter-list values, 10,000 JSON nodes, 1,000 members per JSON collection and nesting depth 16. Query ceilings can be lowered through queryLimits; unservable default selections are refused rather than silently changed. executionBudget, catalogBudget and maxContractBytes allow smaller deployment limits. Streamed/decompressed bytes are bounded even without Content-Length, and redirects are refused. Request cancellation aborts the HTTP operation; the backend must carry disconnection into its executor (the Python serve adapter does so). End-to-end ClickHouse cancellation remains part of integrated release qualification.
A TypeScript consumer of the MCP SDK needs its Fetch/DOM type names available (e.g. lib: ["ES2022", "DOM"] alongside Node types); this does not require a browser runtime. The repository's installed-artifact smoke checks this without skipLibCheck and without the optional ClickHouse peer installed.
list_datasets discovers available analytics models;get_dataset_schema explains dimensions, measures, metrics, and relationships;query_metric executes named KPIs;query_dataset explores the fields you chose to publish.Every tool declares an output schema and returns the same result twice: MCP structuredContent for clients that support typed results, and compact JSON in the text content block for compatibility. Query metadata includes row count, timing when available, pagination state, and cache outcome. Tools also advertise human-readable titles and read-only, non-destructive, idempotent annotations.
Tool failures use a stable structured envelope:
{
"error": { "code": "MCP_INVALID_ARGUMENTS", "category": "correctable_input", "message": "Invalid query_dataset arguments: ...", "retryable": false, "correctable": true } }
Unclassified backend failures are redacted to MCP_EXECUTION_FAILED; database error details and physical SQL are not copied into agent-facing errors.
A hosted server can add retryAfterSeconds, relist, reason (its own stable code), hint (the next action), docsUrl and requestId to an error through MCPToolError's options, and refuse a call over a rate limit with MCP_RATE_LIMITED. mcpToolErrorFromSemanticFailure maps a semantic data-plane failure's code to reason and its relist to relist, and takes the host's retryAfterSeconds, hint, docsUrl and requestId as options. createMCPErrorResponse returns the error in the published envelope.
For tenant-scoped datasets, run the server programmatically with the trusted tenant ID:
await createMCPServer({
datasets, analytics, name: 'acme-analytics', version: '1.0.0', tenantId: session.accountId, queryLimits: { defaultResultSize: 100, maxResultSize: 1_000, maxOffset: 10_000, }, executionBudget: { timeoutMs: 30_000, maxResponseBytes: 1_048_576, }, });
Every query receives a server-side limit even when the agent omits one. The effective ceiling is the lowest applicable server or Dataset limit. Dimensions, measures, filters, ordering, and pagination offsets also have hard package ceilings that server configuration may lower but cannot raise.
Query calls also have a hard wall-clock deadline and UTF-8 response-byte ceiling. Client cancellation and local deadlines propagate through the semantic client to the backing ClickHouse request. Budget failures use the stable MCP_REQUEST_CANCELLED, MCP_QUERY_TIMEOUT, and MCP_RESULT_TOO_LARGE classifications.
The semantic executor is independent of stdio and network lifecycle. A hosted gateway can inject its own MCP transport without reimplementing Hypequery's tools, prompts, catalog schemas, or validation:
import {
createMCPExecutor, createMCPProtocolServer, } from '@hypequery/mcp';
const executor = createMCPExecutor({ datasets, analytics, tenantId: trustedPrincipal.tenantId, });
const server = createMCPProtocolServer({ executor, name: 'acme-hosted-analytics', version: '1.0.0', });
await server.connect(hostTransport);
hostTransport can be an MCP SDK in-memory, stdio, or hosted transport. For an explicit local adapter, use startStdioMCPServer(config). The existing createMCPServer(config) and HypequeryMCPServer.start() APIs remain available for compatibility.
createMCPHttpHandler serves the same tools to remote agents. It answers Fetch Requests, so it runs on Node (listenMCPHttpServer, createMCPNodeRequestListener), Bun, Deno or Cloudflare Workers. The package imports Node built-ins (node:crypto, node:http, node:stream), so a Worker needs the nodejs_compat compatibility flag:
import {
createMCPExecutor, createMCPHttpHandler, createMCPServeAuthenticator, listenMCPHttpServer, } from '@hypequery/mcp'; import { createJwtStrategy } from '@hypequery/serve';
const handler = createMCPHttpHandler({ authenticate: createMCPServeAuthenticator({ strategies: createJwtStrategy({ jwksUri, issuer, audience: 'https://mcp.example.com/mcp' }), }), createExecutor: principal => createMCPExecutor({ datasets, analytics, tenantId: principal.tenantId }), allowedHosts: ['mcp.example.com'], oauth: { resource: 'https://mcp.example.com/mcp', authorizationServers: ['https://example.auth0.com/'], requiredScopes: ['analytics:read'], }, }); await listenMCPHttpServer(handler, { host: '0.0.0.0', port: 3333 });
Every request checks Host and Origin (DNS-rebinding protection), then its credential. Each session belongs to the principal that opened it and gets its own executor for that principal's tenant. With oauth, the server publishes RFC 9728 protected-resource metadata and answers with RFC 6750 challenges that point at it; your identity provider remains the authorization server. createMCPStaticKeyAuthenticator({ key, tenantId }) is the shared-key alternative. From the CLI: hypequery mcp --http. See Remote MCP over HTTP.
Apache-2.0.