Tana Codemode
БесплатноНе проверенEnables dynamic TypeScript code execution against Tana's Local API for flexible knowledge management operations including workspaces, nodes, tags, search, and f
Описание
Enables dynamic TypeScript code execution against Tana's Local API for flexible knowledge management operations including workspaces, nodes, tags, search, and field management.
README
Codemode MCP server for Tana. AI writes TypeScript that executes directly against the Tana Local API.
Requires: Tana Desktop with Local API enabled + an API token (Settings → API).
Install
Binary — download from GitHub Releases, chmod +x, run.
npm (Node.js ≥ 20):
npm install -g tana-mcp-codemode
From source (Bun): git clone → bun install → bun run src/entry-bun.ts
Setup
Run the interactive setup script — detects your installation, prompts for credentials, and configures Claude Code and/or Claude Desktop automatically:
bun run setup
# or for team-shared config:
bun run setup --scope project
Manual MCP Configuration
{
"mcpServers": {
"tana": {
"command": "tana-mcp-codemode",
"env": {
"TANA_API_TOKEN": "your-token-here",
"MAIN_TANA_WORKSPACE": "My Workspace"
}
}
}
}
For binary: set command to the binary path. For source: "command": "bun", "args": ["run", "/path/to/src/entry-bun.ts"].
Environment Variables
| Variable | Default | Description |
|---|---|---|
TANA_API_TOKEN |
required | Bearer token from Tana Desktop |
TANA_API_URL |
http://127.0.0.1:8262 |
Tana Local API URL |
MAIN_TANA_WORKSPACE |
— | Default workspace name or ID |
TANA_SEARCH_WORKSPACES |
— | Comma-separated workspaces for search scope |
TANA_TIMEOUT |
10000 |
Request timeout in ms |
TANA_HISTORY_PATH |
platform default | Custom SQLite history path |
Usage Examples
// Search nodes
const results = await tana.nodes.search("project ideas", {
workspaceIds: [tana.workspace.id]
});
// Import with tags and fields
await tana.import(tana.workspace.id, `
%%tana%%
- Meeting notes #meeting
- Date:: [[2024-01-15]]
- Attendees:: Alice, Bob
`);
API Reference
| Namespace | Methods |
|---|---|
tana.workspace |
pre-resolved default workspace |
tana.workspaces |
list() |
tana.nodes |
search(), read(), getChildren(), edit(), move(), trash(), check(), uncheck(), open() |
tana.tags |
listAll(), getSchema(), create(), modify(), addField(), setCheckbox() |
tana.fields |
setOption(), setContent(), getFieldOptions() |
tana.calendar |
getOrCreate() |
tana.import() |
import Tana Paste content |
tana.health() |
API health check |
Development
bun run start # MCP server
bun run dev # watch mode
bun run test # tests
bun run build # Node.js dist (tsup)
bun run build:binary # self-contained binary
bun run debug # debug UI at :3333
License
MIT
Установить Tana Codemode в Claude Desktop, Claude Code, Cursor
unyly install tana-codemodeСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add tana-codemode -- npx -y tana-mcp-codemodeПошаговые гайды: как установить Tana Codemode
FAQ
Tana Codemode MCP бесплатный?
Да, Tana Codemode MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Tana Codemode?
Нет, Tana Codemode работает без API-ключей и переменных окружения.
Tana Codemode — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Tana Codemode в Claude Desktop, Claude Code или Cursor?
Открой Tana Codemode на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Tana Codemode with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
