Skip to content
HomeNewsConceptsGuidesToolbox
AboutSubscribeUA
Subscribe

AI Today Brief

The daily AI-engineering brief. Built in public. EN · UA.

XTelegramLinkedInYouTubeRSS

Follow AI Today Brief on LinkedIn for daily AI-engineering updates and the weekly “5 shifts that changed how developers work” PDF.

Explore

NewsDigestsConceptsGuides

Company

SubscribeAdvertiseAbout

Legal

Editorial policyAI disclosurePrivacyTerms

© 2026 AI Today Brief. All rights reserved.

  1. Home/
  2. News/
  3. Agents & MCP/
  4. Setoku: Open-Source Self-Hosted Model Context Protocol Knowledge Server for Team Data
Agents & MCP

Setoku: Open-Source Self-Hosted Model Context Protocol Knowledge Server for Team Data

Setoku delivers an Apache-2.0 self-hosted Model Context Protocol server and Claude Code plugin that provides read-only AI access to internal databases. It combines deterministic query execution in ClickHouse and Postgres with a human-governed knowledge store to prevent prompt injection context corruption.

August 22, 2026· 5 min read
OKCurated by Oleksandr Kuzmenko, AI Product Engineer·Updated August 22, 2026·Sources cited on every story
AI-assisted · editor-reviewed·How we use AI
Setoku: Open-Source Self-Hosted Model Context Protocol Knowledge Server for Team Data

Impact: High

Why it matters

You can give Claude Code and Cursor safe, read-only analytics access to production mirrors without leaking database credentials or exposing schema context to third-party cloud servers.

TL;DR

  • 01Setoku secures database context by running single-tenant on self-hosted Docker nodes with read-only database privileges.
  • 02Prompt injections cannot corrupt persistent enterprise knowledge because changes require human approval in an external admin console.
  • 03Claude Code plugins like `/setoku:onboard` automate context ingestion directly from codebase repositories.

Key facts

License
Apache-2.0
Deployment Model
Self-hosted Docker (Single-tenant)
Supported Engines
PostgreSQL, ClickHouse
Security Boundary
Read-only engine enforcement + revocable per-user tokens

Self-Hosted Architecture and Security Hardening

Setoku deploys as a single-tenant stack on a basic Linux host or ~$5 VPS using Docker. All internal databases (PostgreSQL, ClickHouse) remain behind a private network, exposing only a lightweight proxy with individual HTTPS connector tokens per user. Read-only limits are enforced directly at the database engine level rather than through SQL parsing, backed by row result caps, statement execution timeouts, and an append-only audit log.

Claude Code Plugin and Context Governance

Developers integrate Setoku into their local coding environment using the official Claude Code plugin market. Agents inspect canonical metric definitions and known schema gotchas via find_context and get_metric tools before formulating queries. To mitigate malicious prompt injections, agent-proposed knowledge changes are queued in an out-of-band admin web console, requiring manual operator approval before entering the persistent knowledge store.

Try it in 2 minutes

git clone https://github.com/Hedgy-Labs/setoku /opt/setoku
cd /opt/setoku && SETOKU_ADMIN_USER=admin ./deploy/bootstrap.sh
/plugin marketplace add Hedgy-Labs/setoku
/setoku:onboard

bash

✓ When to use

  • Providing Claude Code or Cursor read-only analytics access to production database mirrors
  • Preventing vendor context lock-in by self-hosting metric definitions and team knowledge
  • Building live interactive dashboards from natural language queries without managing frontend code

✕ When NOT to use

  • Scenarios requiring write access or transactional mutations on production databases
  • Teams unable or unwilling to self-host Linux/Docker infrastructure

What to do today

  • →Clone Hedgy-Labs/setoku onto a test VPS and execute `./deploy/bootstrap.sh` to initialize the single-tenant container stack.
  • →Install the plugin in Claude Code via `/plugin marketplace add Hedgy-Labs/setoku` and run `/setoku:onboard`.
  • →Configure a read-only PostgreSQL replica connection string to query analytics through Model Context Protocol.
#Setoku#Claude Code#Cursor#Codex#ClickHouse#PostgreSQL#Docker

Sources

  • Setoku Official Website & Documentation
ShareShare on XShare on LinkedIn
← Previous storyAnthropic Launches Claude Security on Mythos 5 and $35M Open-Source FundNext story →Google Architecture Pattern: Multi-Agent System with 11-Stage Adversarial Validation for Complex Data Pipelines

Related stories

  • Agents & MCPIsolating Parallel AI Coding Agents into Cloud Virtual Machines
  • Agents & MCPModel Context Protocol Enterprise Pattern Mandates Dry-Run Previews and Injection Isolation
  • Agents & MCPAutomating Ground-Truth Extraction with Dual-LLM Gating and Agent Arbitration
  • Agents & MCPGrok Bot Ingests Screen Recordings with Audio to Learn Desktop Workflows

Email digest

Get the morning AI brief

One email a day — the stories that matter for engineers, founders and tech leads. Human-edited, with links to primary sources.

  • ✓120+ sources scanned daily
  • ✓Edited by a human
  • ✓1 email per day
  • ✓EN + UA

By subscribing you agree to the privacy policy.