Sponsored by Deepsite.site

MCP server for kintone サンプル

Created By
r3-yamauchia year ago
MCP server for kintone
Content

MCP server for kintone サンプル

これは kintone との連携目的で使用できる Model Context Protocol (MCP) サーバーのサンプルコードです。 生成AIを用いて自動作成したものを現状有姿で提供します。

この MCP server を使うと Claude Desktopアプリなどの MCPホストアプリから kintoneデータを参照・更新したり、kintoneアプリ自体を作成するなどできます。

kintone Server MCP server

このリポジトリの詳細は Ask DeepWiki を参照してください。

Claude Desktopアプリ における使い方

1. ソースコードをダウンロードする

ダウンロード先はどこでも構いませんが、半角英数のみで構成される、あいだにスペースを含まないパスに入れるのが良いと思います。

2. Node.jsをインストールする

Node.js 18 以降を使用してください。

3. npm installする

npm i

4. Claude Desktopアプリの設定ファイルを編集する

claude_desktop_config.json という設定ファイルを探して、以下を参考に、このファイルの "mcpServers" の項に設定を追加してください。

{
  "mcpServers": {
    "kintone": {
      "command": "node",
      "env": {
        "KINTONE_DOMAIN": "[あなたが使用するサブドメイン].cybozu.com",
        "KINTONE_USERNAME": "MCP接続で使用するkintoneユーザー名",
        "KINTONE_PASSWORD": "kintoneユーザーのパスワード(平文)"
      },
      "args": [
        "[kintone-mcp-serverを配置したパス]/server.js"
      ]
    }
  }
}

5. Claude Desktopアプリを再起動する

claude_desktop_config.json への変更を保存したのち、Claude Desktopアプリを一度終了させて再起動してください。 アプリを終了させたように見えても常駐したまま残っている場合があるため、常駐アイコンを右クリックしてQuitしてください。

6. 動作確認

まずは Claude に "kintoneアプリ「設定したkintoneユーザーでアクセス出来るアプリ名の一例」のアプリIDを調べて" と尋ねてみてください。 ここで入力するkintoneアプリ名は一言一句正確に指定する必要があります。

7. この MCP server が提供している機能の一覧

各ツールのアノテーション属性については docs/tool-annotations.md を参照してください。

レコード操作

  • get_record: kintoneアプリの1レコードを取得
  • search_records: kintoneアプリのレコードを検索
  • create_record: kintoneアプリに新しいレコードを作成
  • update_record: kintoneアプリの既存レコードを更新
  • add_record_comment: kintoneレコードにコメントを追加

ファイル操作

  • upload_file: kintoneにファイルをアップロード
  • download_file: kintoneからファイルをダウンロード(注意: 現在の実装では1MB以上のファイルは正常にダウンロードできない場合があります)

アプリ情報

  • get_apps_info: 検索キーワードを指定して該当する複数のkintoneアプリの情報を取得
  • get_form_layout: kintoneアプリのフォームレイアウトを取得
  • get_app_actions: kintoneアプリのアプリアクション設定を取得
  • get_app_plugins: kintoneアプリに追加されているプラグインの一覧を取得
  • get_process_management: kintoneアプリのプロセス管理設定を取得

アプリ操作

  • create_app: kintoneアプリの新規作成
  • add_fields: kintoneアプリへのフィールド追加
  • update_field: 既存のkintoneフィールドの設定を更新
  • update_form_layout: kintoneアプリのフォームレイアウトを変更
  • update_app_settings: アプリの一般設定を変更
  • deploy_app: kintoneアプリの本番運用開始(運用環境へ反映)
  • get_deploy_status: アプリ設定の運用環境への反映状況を確認する
  • move_app_to_space: kintoneアプリを指定したスペースに移動
  • move_app_from_space: kintoneアプリをスペースに所属させないようにする

スペース操作

  • get_space: スペースの一般情報を取得
  • update_space: スペースの設定を更新
  • update_space_body: スペースの本文を更新
  • get_space_members: スペースメンバーのリストを取得
  • update_space_members: スペースメンバーを更新
  • add_thread: スペースにスレッドを追加
  • update_thread: スレッドを更新
  • add_thread_comment: スレッドにコメントを追加
  • add_guests: ゲストユーザーを追加
  • update_space_guests: スペースのゲストメンバーを更新

ユーザー・グループ情報

  • get_users: kintoneのユーザー情報を取得
  • get_groups: kintoneのグループ情報を取得
  • get_group_users: 指定したグループに所属するユーザーの一覧を取得

kintone接続情報

  • get_kintone_domain: kintoneの接続先ドメインを取得
  • get_kintone_username: kintoneへの接続に使用されるユーザー名を取得

8. その他

この MCP server を使用してどういったことが出来るかブログに書いたので読んでみてください。

Webブラウザー版の Claude からも利用できる OAuth をサポートした リモートMCP Server が 別途 こちら にあります。

「kintone」はサイボウズ株式会社の登録商標です。

ここに記載している内容は情報提供を目的としており、個別のサポートはできません。 設定内容についてのご質問やご自身の環境で動作しないといったお問い合わせをいただいても対応はできませんので、ご了承ください。

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
CursorThe AI Code Editor
Amap Maps高德地图官方 MCP Server
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Tavily Mcp
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
DeepChatYour AI Partner on Desktop
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Serper MCP ServerA Serper MCP Server
WindsurfThe new purpose-built IDE to harness magic
Playwright McpPlaywright MCP server
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
ChatWiseThe second fastest AI chatbot™
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.