Self-hosted Notion alternative where AI agents' edits arrive as tracked changes you accept or reject. Docs, databases, MCP.
- ✓Open-source license (AGPL-3.0)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
- !Install pipes a remote script into a shell (curl | sh)
git clone https://github.com/stuga-dev/stuga{
"mcpServers": {
"stuga": {
"command": "node",
"args": ["/path/to/stuga/dist/index.js"]
}
}
}MCP Servers overview
<img src="apps/web/public/favicon.svg" width="64" height="64" alt=""> # Stuga **AI suggests. You decide.** Self-hosted documents and databases where edits from Claude Code, Codex or any MCP client arrive as tracked changes and, by default, land only when a person accepts them. Use it on your own or with your team. [Download for Mac](https://github.com/stuga-dev/stuga/releases/latest/download/Stuga.pkg) (Apple silicon, macOS 13+) · [Install with Docker](docs/install/docker.md) Install, then [create your account and workspace](https://stuga.dev/docs/install/create-your-account-and-first-workspace) and [connect an agent](docs/agents.md). Help for people using Stuga: [stuga.dev/docs](https://stuga.dev/docs).  ## How agent edits work - **Review by default.** An agent's changes wait for a person, who is notified and accepts or rejects each one in the document or table. Nothing lands on a timer. - **Nobody is blocked.** Collaborators never see pending agent text and keep editing. The agent carries on, and its later reads include its own pending edits. - **Or apply at once.** The owner of a document or database, or a workspace admin, can choose **Let AI edits apply directly**. Changes then land at once, recorded, attributed and revertible. - **A run per session.** Each run records the agent, the person it acts for, the client and model it reported, and every change. **Review AI edits** lists the runs that need someone. - **Who wrote this?** An agent can ask a document which passages agents wrote and whether a person accepted them. - **Instructions that stack.** The workspace, folders, documents and databases can each carry instructions for agents. They advise the model; permissions and review decide what a write does.  ## What's in it - **Documents written together.** Real-time editing (Tiptap over a Yjs CRDT) with presence, comments, @mentions and version history. - **Databases with SQL.** Typed tables beside your documents, each database its own SQLite file, with saved views, row pages and CSV import. Agents, Ask and the REST API run read-only SQL on them. - **Search that follows permissions.** Keyword (BM25, pg_search) and semantic (pgvector) search in one SQL statement, with access checked inside it. Chinese and Japanese are split into words. - **Built-in AI, off until set up.** A co-author and a table assistant, whose edits are reviewed like an agent's, and **Ask**, which cites sources. OpenAI, Anthropic, Gemini, DeepSeek and more, or Ollama. - **Sharing and sign-in.** Workspaces, folders, per-document sharing, groups and guests. People join by invite link and sign in with a password or your OpenID Connect provider. - **Import and export.** A Notion export, or a zipped Obsidian vault or folder of Markdown, becomes a workspace; a workspace exports as one `.stuga.zip` of Markdown, JSON Lines and its files.  ## Connect your agents Agents connect over MCP. **Settings → Your AI agents** gives the setup for Claude Code, Claude Desktop, Codex, Antigravity, Cursor, VS Code, Kiro, Goose, LM Studio, DeepSeek Harness and Pi, with your node's address filled in, and the URL any other MCP client needs ([docs/agents.md](docs/agents.md)). Each agent brings its own model, so the node needs no AI key. - **Scoped sign-in.** Most clients sign in through the browser, where you tick the workspaces an app may use and choose **Read only** or **Read and suggest changes**. **Revoke** ends its access. - **Narrow keys.** A client without sign-in uses an API key, which can be confined to folders, made read-only or given an expiry. - **Content only.** Agents change documents and databases. Renaming, moving, deleting, sharing and the review setting stay with people. - **Full audit.** Every MCP call, reads included, is in the workspace's audit log. An event feed and signed webhooks report what changed. ## Your data Stuga sends no telemetry, and nothing reaches us unless a node admin turns on [remote access](docs/remote-access.md). The node makes outbound requests only for features in use, such as an AI provider, and asks GitHub once a day for the list of releases unless a node admin turns that off. [docs/privacy.md](docs/privacy.md) lists what the node sends and stores. ## Install - **A Mac with Apple silicon**, on macOS 13 or later: open [Stuga.pkg](https://github.com/stuga-dev/stuga/releases/latest/download/Stuga.pkg). It carries its own Postgres and Node.js ([docs/install/macos.md](docs/install/macos.md)). - **Docker** on x86-64 or arm64, such as a Linux server or a NAS: `install.sh` starts Postgres and the node with Compose ([docs/install/docker.md](docs/install/docker.md)): ```sh curl -fsSL https://github.com/stuga-dev/stuga/releases/latest/download/install.sh | bash ``` A node is one Node.js process and Postgres with pgvector and pg_search; people open it in a browser. It backs itself up every day by default and before every upgrade ([docs/operations.md](docs/operations.md)). [docs/getting-started.md](docs/getting-started.md) walks through the first hour. ## Questions and feedback Ask a question or share an idea in [Discussions](https://github.com/stuga-dev/stuga/discussions); report a bug as an [issue](https://github.com/stuga-dev/stuga/issues/new?template=bug.md). ## Contributing Issues and pull requests are welcome. [CONTRIBUTING.md](CONTRIBUTING.md) covers running Stuga from source, the tests and the conventions, and [RELEASING.md](RELEASING.md) how a release is cut. Contributions are accepted under a Contributor License Agreement ([CLA.md](CLA.md)); a bot asks on your first pull request. Report a vulnerability privately, as [SECURITY.md](SECURITY.md) describes. ## License [AGPL-3.0-only](LICENSE), except [integrations/](integrations/), which is [MIT](integrations/LICENSE); copyright notice in [NOTICE](NOTICE). If you modify Stuga and offer it to others over a network, you share your changes under the same terms. The name and logo are not covered by the license: [TRADEMARKS.md](TRADEMARKS.md) says how you may use them.
What people ask about stuga
What is stuga-dev/stuga?
+
stuga-dev/stuga is mcp servers for the Claude AI ecosystem. Self-hosted Notion alternative where AI agents' edits arrive as tracked changes you accept or reject. Docs, databases, MCP. It has 1 GitHub stars and its last recorded update is dated 2026-10-02.
How do I install stuga?
+
You can install stuga by cloning the repository (https://github.com/stuga-dev/stuga) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is stuga-dev/stuga safe to use?
+
Our security agent has analyzed stuga-dev/stuga and assigned a Trust Score of 87/100 (tier: Trusted). See the full breakdown of passed checks and flags on this page.
Who maintains stuga-dev/stuga?
+
stuga-dev/stuga is maintained by stuga-dev. The last recorded GitHub activity is dated 2026-10-02, with 0 open issues.
Are there alternatives to stuga?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy stuga to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/stuga-dev-stuga)<a href="https://claudewave.com/repo/stuga-dev-stuga"><img src="https://claudewave.com/api/badge/stuga-dev-stuga" alt="Featured on ClaudeWave: stuga-dev/stuga" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
The fastest path to AI-powered full stack observability, even for lean teams.