tela is an open-source, self-hostable Markdown team wiki designed for AI agents as first-class authors and readers. It combines a Go + PostgreSQL backend with a React 19 / Milkdown editor, Yjs-based real-time collaboration, ranked full-text and semantic search, and a built-in Model Context Protocol (MCP) server, so that a knowledge base edited by teams in the browser can be directly searched, read, and written by agents. All content is always stored as canonical Markdown (pages.body is Markdown), with no proprietary block storage.
Main capabilities
- Atlas automatic documentation generation: Point Atlas at your sources (such as a git repository, Jira), and it will draft and maintain real wiki pages, so that documentation follows what you deliver instead of gradually rotting. In the example, after Atlas records a repository, it audits its own coverage, showing 6/6 surfaces that must be covered, 42 references, and the exact file:line gaps not yet covered.
- Built-in MCP server: /api/mcp is part of the backend, not an add-on. Agents such as Claude and Cursor can search, read, and write pages, with write permissions scoped by tool.
- Semantic + full-text search: Ranked PostgreSQL full-text search works out of the box; after adding an embedder, pgvector-based semantic retrieval can be enabled, along with grounded "ask the docs" answers.
- Real-time collaboration: Multi-cursor real-time editing via Yjs on the Milkdown editor, with support for comments, backlinks, and revision history.
- Self-organizing teams: Users can create organizations and invite teammates by email, with no admin ticket required. After switching a space to public, it becomes a blog interface that requires no login, with a homepage for each author.
- Self-hosted with Markdown ownership: pages.body is permanently canonical Markdown (no block tables). Supports WebDAV sync, export to zip/PDF, and running the entire stack with a single make up command.
How to use Requires Docker (including Compose) and make. The bundled stack builds all images via Compose, so the host machine does not need a Node or Go toolchain. The stack starts behind Caddy at http://localhost:8780 On first launch, tela automatically runs embedded migrations and takes you into the /setup wizard to create the first administrator—unless you set TELA_ADMIN_PASSWORD in deploy/.env to bootstrap the administrator non-interactively. Under the hood, make up is docker compose -f deploy/docker-compose.yml up -d --build (plus forcing a rebuild of the proxy to remount the changed Caddyfile). Three key secrets must be set and remain stable across deployments: rotating TELA_SHARE_SECRET invalidates unfinished share cookies, and rotating TELA_API_KEY_SECRET invalidates all existing personal access tokens (PATs).
Local development: if :8080 is occupied, you can run make dev DEV_BE_PORT=18080 to keep the backend and the vite /api proxy consistent.
Optional semantic search: the bundled Compose stack includes an optional Ollama embedder behind a profile. Full-text search is always available; this option only lights up the semantic part.
Configuration is driven by the deploy/.env environment (copy from deploy/.env.example). In the bundled Compose stack, TELA_DATABASE_URL is built automatically from the TELA_PG_* variables—it only needs to be set explicitly when the backend connects to an external Postgres.
Other optional configuration includes: bootstrapping the administrator, email (when TELA_SMTP_HOST is not set, confirmation/reset/notification links are logged to stdout), custom domains and TLS, AI (semantic retrieval, asking questions about documents, Atlas, all off by default, and the related endpoints return 503 when not set; can point to your own Ollama / OpenAI-compatible endpoint, the bundled --profile embed Ollama, or the tela cloud-hosted endpoint), authentication (MCP OAuth and federated login), billing, service/sync/operations.
Connecting agents (MCP) tela's MCP server is built into the backend at /api/mcp and self-authenticates using a personal access token (PAT) as a bearer header. Modern hosts use the HTTP transport directly. For hosts that do not support the HTTP transport (or want a stdio bridge), the tela-mcp npm package is a thin stdio↔HTTP proxy for the same endpoint—no need to maintain a second tool implementation. Point TELA_BASE_URL at your own origin to use a self-hosted instance. Generate a PAT in Settings → API tokens; per-tool write permissions are enforced server-side. The proxy requires Node ≥ 20.
The one-click install button adds the HTTP endpoint; authentication is handled via OAuth on first use, so there is no token in the link.
Per-client setup:
- Claude Code (CLI, HTTP): add the HTTP endpoint.
- Cursor (HTTP): use the button or add to ~/.cursor/mcp.json.
- VS Code (HTTP): use the button or add the configuration.
- ChatGPT: install Tela from the plugin directory and sign in. Directory plugins communicate with the hosted service; for self-hosted instances, add a custom connector.
- Claude.ai / self-hosted ChatGPT (OAuth connector): add a custom connector and paste the URL, then complete sign-in.
- Claude Desktop (stdio proxy): claude_desktop_config.json.
- Windsurf (stdio proxy): ~/.codeium/windsurf/mcp_config.json, with the same mcpServers structure as Claude Desktop.
- Codex (stdio proxy): ~/.codex/config.toml. The machine discovery manifest is published at /.well-known/mcp.json.
Tech stack
- Backend: Go (module github.com/zcag/tela/backend, entry point cmd/tela), hand-written database/sql based on the pgx/v5 standard library driver, no ORM, no sqlc. Embedded, forward-only SQL migrations run automatically at startup.
- Database: PostgreSQL 17 with the pgvector extension (pgvector/pgvector:pg17). Full-text search lives in pages.search_tsv (ranked by ts_rank_cd); semantic chunks live in page_chunks.embedding vector(1024).
- Frontend: React 19 + Vite + TypeScript + Tailwind v4 + Radix + Milkdown (@milkdown/kit) editor, together with TanStack Query/Router, Orama, cmdk, and Storybook. Uses only its own, token-driven UI components.
- Real-time collaboration: Yjs + y-prosemirror over a custom WebSocket transport, strictly scoped to src/lib/collab/* and the editor's collab branch; on save, rebased to canonical Markdown.
- Built-in MCP: the tool/resource surface lives in the Go backend (internal/api/mcp*.go), calling the same core functions as the REST routes, so there is only one implementation. mcp/ is a dumb stdio↔HTTP pipe, published on npm as tela-mcp.
- Atlas: a documentation engine that drafts and maintains Wiki pages from your sources, sharing the configured LLM endpoint.
- Rendering helpers: Gotenberg for HTML→PDF export; Slidev deck helper for presentation pages.
- Edge: Caddy serves the SPA, API, the marketing landing page on the apex, and (in direct-TLS mode) on-demand certificates for organizations' custom domains.
Self-hosting and cloud
- Self-hosting: run the entire stack with make up (or docker compose). You own the data, Markdown, and Postgres volume; AI features use bring-your-own endpoint (or the bundled Ollama profile). For split/registry deployment topologies on a shared edge box, see docs/deploy.md.
- Cloud: the hosted instance is at telawiki.com, with a free tier, plus optional hosted semantic search and ask-your-docs, so you don't need to run an embedder or LLM yourself. Both run the same code.
When it fits Suitable for engineering teams that need AI agents to participate directly in documentation search, writing, and maintenance; that want docs to update automatically with code/Jira; that value self-hosting, data ownership, and canonical Markdown storage; and for knowledge base scenarios that need real-time collaboration and semantic search.
Limitations and licensing tela is open-source core. The community core (the entire product) is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0): you may self-host, modify, and redistribute it, but if you run a modified version as a network service, you must provide users with the corresponding source code. The tela-mcp npm package is licensed under AGPL-3.0-only. For a commercial license without AGPL obligations (for example, embedding or offering tela as a closed-source service), contact the maintainers. The enterprise edition (backend/internal/ee/, source-visible, not AGPL) adds a company records layer (SSO, audit, SCIM, governance), and production use requires a license key. See backend/internal/ee/LICENSE.md and docs/licensing.md for details. The "tela" name and logo are trademarks and are not licensed under the AGPL; you may run and fork the code, but you may not use the tela brand for redistributed or hosted versions without permission. Send security reports privately to tela@telawiki.com.
Contribution conventions: commit format type(scope): summary; no issue/task tracker, discuss via pull requests; backend changes use hand-written SQL and new forward-only NNNN_name.sql migrations (never edit applied migrations); frontend changes use your own Radix/token primitives—no hardcoded hex/px, no third-party component suites; before sending changes, run make test (backend) and npm run build in frontend/.
Facts such as pricing, specific prices for paid tiers, Jira integration details, and the exact list of sources Atlas supports are not yet provided in the supplied materials.