# Stuga

Connects your coding agent to a self-hosted team wiki where AI edits wait for human review before going live.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 6
- Author: stuga-dev
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/stuga-dev/stuga
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/mcp/stuga

## What it does

This server bridges MCP clients with your team wiki of rich-text pages and typed tables. Your assistant extracts points from meetings or messages, inserts facts into matching sections, and answers queries citing approved sources.

Safety depends on review stages: changes wait for a colleague or apply right away. Agents only update text or table entries. They cannot rename, delete, move folders, or change permission rules.

You need a running Stuga node on macOS 15+ (Apple silicon) or a Docker host with Postgres. The MCP bridge fails if the node instance address is unreachable.

## Requirements
- Needs: Node.js (commands run via npx)
- Remote server: `https://{stuga_host}/mcp`
- Environment variables: `STUGA_URL` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

1. **Platform CLI**
```bash
claude mcp add --env STUGA_URL=<STUGA_URL> --transport stdio stuga -- npx -y @stuga/mcp
```
Replace <…> with your own values

2. **Platform CLI: remote server**
```bash
claude mcp add --transport http stuga https://{stuga_host}/mcp
```

### Codex

1. **Platform CLI**
```bash
codex mcp add stuga --env STUGA_URL=<STUGA_URL> -- npx -y @stuga/mcp
```
Replace <…> with your own values

2. **Platform CLI: remote server**
```bash
codex mcp add stuga --url https://{stuga_host}/mcp
```

### Cursor

1. **Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "stuga": {
            "command": "npx",
            "args": [
                "-y",
                "@stuga/mcp"
            ],
            "env": {
                "STUGA_URL": "<STUGA_URL>"
            }
        }
    }
}
```
Replace <…> with your own values

2. **Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "stuga": {
            "url": "https://{stuga_host}/mcp"
        }
    }
}
```

### GitHub Copilot

1. **Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "stuga": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@stuga/mcp"
            ],
            "env": {
                "STUGA_URL": "<STUGA_URL>"
            }
        }
    }
}
```
Replace <…> with your own values

2. **Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "stuga": {
            "type": "http",
            "url": "https://{stuga_host}/mcp"
        }
    }
}
```

### Gemini CLI

1. **Platform CLI**
```bash
gemini mcp add -e STUGA_URL=<STUGA_URL> stuga npx -y @stuga/mcp
```
Replace <…> with your own values

2. **Platform CLI: remote server**
```bash
gemini mcp add -t http stuga https://{stuga_host}/mcp
```

## When to use it
- maintain a self-hosted team wiki using AI assistants
- verify agent changes through change cards before publishing
- query internal documentation with source citations and access checks
- detect stale documents and broken links across workspace pages

## Example prompts
- Save these meeting notes to Stuga and update the relevant pages
- Ask Stuga what the current incident response policy is
- Run a check on Stuga to find dead links and orphan pages

## Similar
- [Reactive Resume](https://affpapa.org/en/nevibecode/mcp/reactive-resume.md) — MCP server · ★ 44908
- [Sui Knowledge Base (kapa.ai)](https://affpapa.org/en/nevibecode/mcp/sui-knowledge-base-kapaai.md) — MCP server · ★ 7785
- [Claude Code Ultimate Guide](https://affpapa.org/en/nevibecode/mcp/claude-code-ultimate-guide.md) — MCP server · ★ 6258
- [Zotero MCP](https://affpapa.org/en/nevibecode/mcp/zotero-mcp.md) — MCP server · ★ 5585
- [RevoGrid DataGrid MCP Pro](https://affpapa.org/en/nevibecode/mcp/revogrid-datagrid-mcp-pro.md) — MCP server · ★ 3451
- [Claude Code Explorer MCP](https://affpapa.org/en/nevibecode/mcp/codeaashu-claude-code-explorer-mcp.md) — MCP server · ★ 3412

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
