Repository navigation
Connect AI Agents
Folio is a remote MCP server with 40 tools at /mcp. Any MCP client reads and writes your wiki with the rights of the person who connected, and nothing more. Writes land in Git under that person's name.
| Sign-in | Use it for | How |
|---|---|---|
Personal access token (folio_pat_...) |
Clients on your machine or network: Claude Code, Cursor, VS Code, Codex, n8n, Open WebUI | User menu, API tokens, scope read or write; shown once |
| OAuth 2.1 | Clients in a vendor's cloud: claude.ai, Claude Desktop, ChatGPT | Add https://<your-host>/mcp as a custom connector, sign in to Folio, allow read or read + write on the consent screen |
OAuth needs a Folio reachable over HTTPS from the internet. Disconnect under API tokens, Connected apps. Set PUBLIC_URL correctly: the OAuth metadata is built from it.
claude mcp add folio --transport http https://wiki.example.com/mcp \
--header "Authorization: Bearer folio_pat_..."Keep tokens in environment variables, never in a repository.
| Client | Sign-in | Guide |
|---|---|---|
| Claude (claude.ai, Desktop) | OAuth | Connect Claude |
| ChatGPT | OAuth | Connect ChatGPT |
| Claude Code | Token or OAuth | Connect Claude Code |
| Cursor | Token | Connect Cursor |
| Codex | Token or OAuth | Connect Codex |
| VS Code (Copilot) | Token | Connect VS Code |
| n8n | Token | Connect n8n |
| Open WebUI | Token | Connect Open WebUI |
Ready-made config files, rules and a Claude Code plugin are in the repository's integrations folder.
| Group | Tools |
|---|---|
| Reading |
list_spaces, list_tree, read_page, search_pages, resolve_folio_url, get_backlinks, page_history, page_at_sha
|
| Page index |
get_page_metadata, list_unresolved_links, list_orphans, get_graph
|
| Tags, properties, bases |
list_tags, list_properties, query_base; write: rename_tag, set_page_properties, save_base
|
| Pages (write) |
create_page, update_page
|
| Whiteboards (write) |
create_board, update_board, board_ops, convert_canvas_to_board
|
| Data tables | read: folio_table_list, folio_table_schema, folio_table_query; write: insert, update, delete, add/update/delete column, save/delete view, create |
| Forms (write) |
create_form, update_form
|
| ChatGPT deep research |
search, fetch
|
Search uses one grammar everywhere: words, "phrase", -word, tag:, in:, kind:, status:, prop: (details). Read the table schema before changing a table.
- A token or grant never has more rights than its owner, and a
readtoken cannot write. Give an agent its own Folio user with the editor role only in the spaces it needs. - Administrative actions are not available to agents: access, invitations, publishing settings and share links are browser-only, and a token cannot rename or delete a space. MCP has no tool to move or delete pages.
- Page content is data, not instructions. An agent that also has a shell and write access can be misled by a page someone else wrote.
-
.agentpages are visible to space administrators only. - A public space still needs a token or OAuth for
/mcp. - The public demo issues no tokens; only OAuth clients can connect to it, and the data resets daily.
Writes reach the file at once, the Git commit follows about 90 seconds later (page_history may be empty right after). For bulk changes, git clone, edit, push and call Sync is cheaper than many tool calls.
All integrations · MCP.md · Video: an agent updates your wiki · Set Up Folio AI
Website · Live demo · Install · Docs · Repository · Discussions · Changelog · MIT license
Start
Move to Folio
- Migrate from Confluence
- Migrate from Notion
- Migrate from Obsidian
- Make Obsidian Multiplayer
- Docs as Code
Use
AI and agents
Admin