Tanaのロゴ

Tana

コミュニティ
tim-mcdonnell

A Model Context Protocol (MCP) server that connects to Tana's Input API, enabling AI assistants to create and manipulate data in your Tana workspace.

公開者tim-mcdonnell
リポジトリtana-mcp
言語TypeScript
フォーク
9
スター
41
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    Tanaは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには41件のスターと9件のフォークがあります。

Tana MCP Server

[!IMPORTANT] This project is no longer actively maintained. I've moved on from Tana and no longer use the software, so I'm not in a position to keep this MCP server current or provide ongoing support. The repository remains available as a reference, and anyone who finds it useful is encouraged to fork it and continue development.

A Model Context Protocol (MCP) server that connects to Tana's Input API, enabling AI assistants to create and manipulate data in your Tana workspace.

Table of Contents

Features

Tools (12 available)

ToolDescription
create_plain_nodeCreate simple text nodes with optional supertags
create_formatted_nodeCreate nodes with rich formatting and inline references
create_reference_nodeCreate references to existing nodes
create_date_nodeCreate date nodes (supports various ISO 8601 formats)
create_url_nodeCreate URL/link nodes
create_checkbox_nodeCreate checkbox/task nodes
create_file_nodeCreate file attachment nodes (base64 encoded)
create_node_structureCreate complex nested node hierarchies
create_supertagDefine new supertags in your schema
create_fieldDefine new fields in your schema
add_field_valueAdd field values to existing nodes
set_node_nameRename existing nodes (plain nodes only)

Prompts (4 templates)

  • create-task - Structured task creation with due dates and priorities
  • create-project - Project structures with goals and milestones
  • create-meeting-notes - Meeting documentation with attendees and action items
  • create-knowledge-entry - Knowledge base entries with categories and sources

Resources (4 available)

  • api-docs - Complete Tana Input API reference
  • node-types - Detailed examples of all supported node types
  • examples - Common usage patterns and best practices
  • server-info - Current server status and configuration

Prerequisites

Getting Your Tana API Token

  1. Open Tana in your browser
  2. Click on the Settings icon (gear) in the bottom left
  3. Navigate to API tokens
  4. Click Create new token
  5. Give it a descriptive name (e.g., "MCP Server")
  6. Copy the token immediately - it won't be shown again

Installation

Raycast

Raycast integrates MCP servers directly into its AI features. Once configured, use @tana-mcp in any Raycast AI interaction.

Step 1: Install the MCP Extension

  1. Open Raycast
  2. Search for "Store" and open the Raycast Store
  3. Search for "Model Context Protocol"
  4. Install the MCP extension

Step 2: Add the Tana MCP Server

  1. Open Raycast and search for "Install Server" (from the MCP extension)
  2. Fill in the form:
FieldValue
NameTana
Typestdio
Commandnpx
Arguments-y tana-mcp
  1. Add environment variables:

Alternative: Copy this JSON before opening "Install Server" - Raycast will auto-populate the form:

json
{
  "name": "Tana",
  "type": "stdio",
  "command": "npx",
  "args": ["-y", "tana-mcp"],
  "env": {
    "TANA_API_TOKEN": "your-api-token-here",
    "TANA_DEFAULT_TARGET": "INBOX"
  }
}

Step 3: Use in Raycast AI

Once installed, mention the server in any Raycast AI interaction:

  • Quick AI: Type your query and mention @Tana
  • AI Chat: Start a chat and use @Tana to invoke tools
  • AI Commands: Create custom commands that use Tana tools

Example: "@Tana Create a task called 'Review quarterly report' with high priority"

For more details, see the Raycast MCP documentation.


Claude Code (CLI)

Add Tana MCP as a user-scoped server available in all your Claude Code sessions.

bash
claude mcp add -s user \
  -e TANA_API_TOKEN=your-api-token-here \
  -e TANA_DEFAULT_TARGET=INBOX \
  tana-mcp \
  npx -y tana-mcp

Or for project-scoped (current directory only):

bash
claude mcp add \
  -e TANA_API_TOKEN=your-api-token-here \
  tana-mcp \
  npx -y tana-mcp

Verify it's installed:

bash
claude mcp list

Claude Desktop

Add to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

json
{
  "mcpServers": {
    "tana-mcp": {
      "command": "npx",
      "args": ["-y", "tana-mcp"],
      "env": {
        "TANA_API_TOKEN": "your-api-token-here",
        "TANA_DEFAULT_TARGET": "INBOX"
      }
    }
  }
}

Restart Claude Desktop after saving.


Other MCP Clients

For any MCP-compatible client, configure with:

SettingValue
Commandnpx
Arguments-y tana-mcp
EnvironmentTANA_API_TOKEN=your-token

Or if installed globally (npm install -g tana-mcp):

SettingValue
Commandtana-mcp
EnvironmentTANA_API_TOKEN=your-token

Configuration Options

VariableRequiredDefaultDescription
TANA_API_TOKENYes-Your Tana API token
TANA_DEFAULT_TARGETNoLibrary rootWhere to place nodes when no target specified. Use INBOX for inbox, or any node ID
TANA_API_ENDPOINTNoTana's defaultCustom API endpoint (advanced use only)

Target Options

  • Omit TANA_DEFAULT_TARGET: Nodes appear in Library root
  • INBOX: Nodes go to your Tana Inbox for later processing
  • Any node ID: Nodes created under that specific node

Usage

Available Tools

Basic Node Creation

Create a node called "Meeting Notes - January 9th"

Tasks with Checkboxes

Create a task "Review PR #123" that's not yet completed

Rich Formatted Content

Create a formatted node with **bold text** and a reference to node ID abc123

Nested Structures

Create a project structure with:
- Project: Website Redesign
  - Phase 1: Research
  - Phase 2: Design
  - Phase 3: Development

Schema Operations

Create a new supertag called "Book" for tracking my reading list

Example Prompts

Here are natural language prompts that work well:

What you wantExample prompt
Quick capture"Add 'Call dentist' to my Tana inbox"
Task with details"Create a high-priority task 'Finish report' due Friday"
Meeting notes"Create meeting notes for my 1:1 with Sarah, we discussed Q1 goals"
Project setup"Set up a new project called 'App Launch' with planning, development, and release phases"
Knowledge entry"Add a note about TypeScript generics with examples"
Link a URL"Save this article: https://example.com/interesting-post"

Text Formatting

The create_formatted_node tool supports rich text formatting in node names:

FormatSyntaxResult
Bold**text**text
Italic__text__text
Strikethrough~~text~~text
Highlight^^text^^highlighted

You can also include:

  • Inline node references: Link to other nodes by ID
  • Inline dates: Clickable date links

Example:

Create a formatted node: "Discussed **important** changes with [PERSON] on [DATE]"
with PERSON referencing node xyz123 and DATE as 2024-01-15

API Limitations

These are Tana Input API limitations, not server limitations:

LimitValue
Nodes per request100 maximum
Rate limit1 request/second per token
Payload size5,000 characters
Workspace nodes750,000 maximum

Not supported by Tana's API:

  • Reading/querying existing nodes (write-only API)
  • Targeting "Today" or relative date nodes
  • Updating checkbox/boolean nodes
  • Non-HTTP/HTTPS links

Development

Building from Source

bash
git clone https://github.com/tim-mcdonnell/tana-mcp.git
cd tana-mcp
bun install      # or: npm install
bun run build    # or: npm run build

Running Locally

bash
TANA_API_TOKEN=your-token bun run dev

Testing with Claude Code

Point Claude Code to your local build:

bash
claude mcp add -s user \
  -e TANA_API_TOKEN=your-token \
  tana-mcp-dev \
  bun /path/to/tana-mcp/dist/index.js

Troubleshooting

"Missing expected parameter key: items"

This error occurred in versions before 2.0.0. Update to the latest version:

bash
npm install -g tana-mcp@latest

Server not connecting

  1. Verify your token: Make sure TANA_API_TOKEN is set correctly
  2. Check the command: Ensure npx is available in your PATH
  3. Restart the client: Some clients require restart after config changes
  4. Check logs: Look for error messages in your MCP client's logs

Nodes appearing in wrong location

  • Set TANA_DEFAULT_TARGET=INBOX to use your inbox
  • Or specify targetNodeId in individual tool calls

set_node_name returning 400 error

This happens when trying to rename checkbox/boolean nodes. The Tana API only supports renaming plain text nodes.

Rate limiting errors

The Tana API limits requests to 1 per second. If you're hitting rate limits, slow down your requests or batch operations together.

Contributing

Contributions welcome! Please feel free to submit a Pull Request.

License

MIT License - see LICENSE file for details.

Support


Sources:

インストール

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "tana-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "tana-mcp"
      ],
      "env": {
        "TANA_API_TOKEN": "your-api-token-here"
      }
    }
  }
}

TanaのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Tanaに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Tanaをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. TanaのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "tana": {
      "command": "npx",
      "args": [
        "-y",
        "tana-mcp"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてTanaのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. TanaのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Tanaを使ってこのタスクを手伝ってもらえますか?
Tana
はい、読みました。
Tanaで調べた結果をお伝えします。

よくある質問

Tana MCPサーバーは何に使いますか?

Tanaは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでTana MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでTanaを利用できます。

TypingMindでTana MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Tanaを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Tana MCPをTypingMindに接続するにはどうすればよいですか?

TanaはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでTana MCPのどのようなツールを利用できますか?

TanaはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Tana MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Tanaで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇