Kintone MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add -e "KINTONE_DOMAIN=${KINTONE_DOMAIN}" kintone-mcp-server -- uvx --from git+https://github.com/r3-yamauchi/kintone-mcp-server-python3.git kintone-mcp-server-python3
Required:KINTONE_DOMAIN+ 3 optional
README.md

Enables AI assistants to interact with kintone data via the Model Context Protocol

kintone MCP Server (Python3) サンプル

kintone と連携するためのMCP (Model Context Protocol) サーバーのサンプル実装です。 このサーバーは、AI アシスタント(Claude等)が kintone のデータを読み取り、操作できるようにします。

主な特徴

  • 🔐 セキュアな認証: APIトークン認証とパスワード認証の両方をサポート
  • 📊 完全なCRUD操作: レコードの作成・読み取り・更新・削除が可能
  • 📄 自動ページネーション: 大量のレコードを効率的に処理
  • 🔍 高度なクエリ機能: kintoneのクエリ構文をフルサポート
  • 📎 ファイル管理: ファイルのアップロード・ダウンロードに対応
  • 💬 コメント機能: レコードへのコメント追加・取得
  • 🔄 ステータス管理: プロセス管理のステータス更新
  • 🚀 非同期処理: 高速なレスポンスと効率的なリソース使用
  • 🛡️ 堅牢なエラー処理: 詳細なエラーメッセージと適切な例外処理
  • 🌐 国際化対応: 多言語フィールドのサポート

利用可能なツール

レコード操作

ツール名 説明 主な用途
get_record 単一レコードの取得 特定のレコードの詳細情報を取得
get_records レコード一覧の取得(ページネーション付き) 条件に合うレコードを検索・取得
get_all_records 全レコードの自動取得 大量レコードの一括取得(自動ページネーション)
add_record 単一レコードの追加 新規レコードの作成
add_records 複数レコードの一括追加(最大100件) バッチ処理による効率的なレコード作成
update_record 単一レコードの更新 既存レコードの情報更新
update_records 複数レコードの一括更新(最大100件) バッチ処理による効率的なレコード更新

コメント・ステータス操作

ツール名 説明 主な用途
get_comments レコードのコメント取得 コミュニケーション履歴の確認
add_comment レコードへのコメント追加 メンション付きコメントの投稿
update_status レコードのステータス更新 ワークフローの進行
update_statuses 複数レコードのステータス一括更新 効率的なワークフロー処理

ファイル・アプリ管理

ツール名 説明 主な用途
upload_file ファイルのアップロード 添付ファイルの登録
download_file ファイルのダウンロード 添付ファイルの取得
get_app アプリ情報の取得 アプリ設定の確認
get_apps アプリ一覧の検索・取得 利用可能なアプリの探索
get_form_fields フォームフィールド設定の取得 アプリ構造の理解

必要条件

  • Python 3.12以上
  • uv (推奨)
  • kintone環境へのアクセス権限
  • APIトークンまたはユーザー認証情報

MCPクライアント設定

Claude Desktop設定

Claude Desktopでこのサーバーを使用するには、設定ファイルに以下を追加してください。

設定ファイルの場所
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
uvxを使用(推奨)

GitHubから直接実行する設定:

{
  "mcpServers": {
    "kintone": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/r3-yamauchi/kintone-mcp-server-python3.git",
        "kintone-mcp-server-python3"
      ],
      "env": {
        "KINTONE_DOMAIN": "your-subdomain.cybozu.com",
        "KINTONE_USERNAME": "your-username",
        "KINTONE_PASSWORD": "your-password"
      }
    }
  }
}

重要:

  • KINTONE_DOMAINは必ず実際の値に置き換えてください(例: dev-demo.cybozu.com)
  • 認証は、ユーザー名とパスワードの両方が指定されている場合はパスワード認証、そうでない場合はAPIトークン認証が使用されます
  • 環境変数はclaude_desktop_config.json内に直接記載されます
  • 設定変更後はClaude Desktopを再起動してください

VS Code設定

VS CodeのMCP拡張機能を使用する場合:

{
  "mcp.servers": {
    "kintone": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/r3-yamauchi/kintone-mcp-server-python3.git",
        "kintone-mcp-server-python3"
      ],
      "env": {
        "KINTONE_DOMAIN": "your-subdomain.cybozu.com",
        "KINTONE_API_TOKEN": "your-api-token"
      }
    }
  }
}

複数環境の設定例

本番環境と開発環境を分けて管理する場合:

{
  "mcpServers": {
    "kintone-prod": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/r3-yamauchi/kintone-mcp-server-python3.git",
        "kintone-mcp-server-python3"
      ],
      "env": {
        "KINTONE_DOMAIN": "your-subdomain.cybozu.com",
        "KINTONE_API_TOKEN": "prod-api-token"
      }
    },
    "kintone-dev": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/r3-yamauchi/kintone-mcp-server-python3.git",
        "kintone-mcp-server-python3"
      ],
      "env": {
        "KINTONE_DOMAIN": "your-subdomain.cybozu.com",
        "KINTONE_USERNAME": "dev-user",
        "KINTONE_PASSWORD": "dev-password"
      }
    }
  }
}

設定のポイント

  1. uvxの利点

    • 事前のインストールが不要
    • 常に最新版を実行
    • 依存関係の競合を回避
  2. セキュリティの注意点

    • claude_desktop_config.jsonに kintoneへアクセスするための機密情報(ユーザー名, パスワード, APIトークン)を平文で保存する必要があります
    • このファイルを他人と共有しないでください
    • Gitリポジトリにコミットしないよう注意してください

トラブルシューティング

よくある問題と解決方法

接続エラー
Error: Failed to connect to kintone

解決方法:

  1. KINTONE_DOMAINが正しいか確認(例: dev-demo.cybozu.com)
  2. ネットワーク接続を確認
  3. ファイアウォール設定を確認
認証エラー
Error: Authentication failed (401)

解決方法:

  1. ユーザー名,パスワードやAPIトークンが正しいか確認
  2. APIトークンに必要な権限があるか確認
  3. アプリの設定でAPIトークンが有効になっているか確認
権限エラー
Error: Permission denied (403)

解決方法:

  1. ユーザーにアプリへのアクセス権限があるか確認
  2. APIトークンに必要な権限が付与されているか確認
  3. レコードのアクセス権限を確認

デバッグモード

詳細なログを出力するには:

export LOG_LEVEL=DEBUG
uvx --from git+https://github.com/r3-yamauchi/kintone-mcp-server-python3.git kintone-mcp-server-python3

ソースコードをローカルインス

Tools (16)

get_recordRetrieves details for a single record
get_recordsRetrieves a list of records with pagination
get_all_recordsRetrieves all records using automatic pagination
add_recordCreates a new record
add_recordsCreates multiple records in bulk
update_recordUpdates an existing record
update_recordsUpdates multiple records in bulk
get_commentsRetrieves comments from a record
add_commentAdds a comment to a record
update_statusUpdates the workflow status of a record
update_statusesUpdates statuses for multiple records in bulk
upload_fileUploads a file to Kintone
download_fileDownloads a file from Kintone
get_appRetrieves information about a specific app
get_appsSearches and retrieves a list of apps
get_form_fieldsRetrieves the form field configuration for an app

Environment Variables

KINTONE_DOMAINrequiredYour Kintone subdomain (e.g., your-subdomain.cybozu.com)
KINTONE_USERNAMEKintone username for password-based authentication
KINTONE_PASSWORDKintone password for password-based authentication
KINTONE_API_TOKENAPI token for token-based authentication

Configuration

claude_desktop_config.json
{"mcpServers": {"kintone": {"command": "uvx", "args": ["--from", "git+https://github.com/r3-yamauchi/kintone-mcp-server-python3.git", "kintone-mcp-server-python3"], "env": {"KINTONE_DOMAIN": "your-subdomain.cybozu.com", "KINTONE_USERNAME": "your-username", "KINTONE_PASSWORD": "your-password"}}}}

Try it

List all records from the 'Project Tasks' app.
Find the record with ID 123 in the 'Customer Support' app and add a comment saying 'Follow up required'.
Update the status of record 456 to 'Completed' in the 'Sales Pipeline' app.
Upload the file 'report.pdf' and attach it to record 789.

Frequently Asked Questions

What are the key features of Kintone MCP Server?

Full CRUD operations for Kintone records. Automatic pagination for handling large datasets. Support for both API token and password-based authentication. Workflow status management and comment posting. File upload and download capabilities.

What can I use Kintone MCP Server for?

Automating data entry into Kintone apps via natural language. Querying and summarizing large Kintone datasets for reporting. Managing workflow transitions and status updates through AI assistants. Streamlining file attachments to specific records.

How do I install Kintone MCP Server?

Install Kintone MCP Server by running: uvx --from git+https://github.com/r3-yamauchi/kintone-mcp-server-python3.git kintone-mcp-server-python3

What MCP clients work with Kintone MCP Server?

Kintone MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Kintone MCP Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare