Cover image
Try Now
2025-04-08

MCPサーバでmicroCMSAPIを利用可能にする

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

microCMS MCP サーバ

このプロジェクトは、Model Context Protocol (MCP) を使用して microCMS の API にアクセスするサーバを実装したものです。

概要

microCMS MCP サーバは以下の機能を提供します:

  1. コンテンツ一覧取得:指定したエンドポイントからコンテンツ一覧を取得
  2. 特定コンテンツ取得:ID を指定して特定のコンテンツを取得
  3. コンテンツ検索:キーワード検索によるコンテンツの取得
  4. フィルター検索:複雑な条件でのコンテンツのフィルタリング

インストール

# リポジトリのクローン
git clone https://github.com/burnworks/microcms-api-mcp-server
cd microcms-api-mcp-server

# 依存関係のインストール
npm install

使用方法

必要なファイルのビルド

# TypeScriptをコンパイル
npm run build

dist/ ディレクトリ内に必要なファイルが生成されます。

MCP クライアントからの使用

このサーバは MCP プロトコルに準拠しており、任意の MCP クライアントから接続して使用できます。

Claude デスクトップアプリでの利用

claude_desktop_config.json に下記のように設定してください。

{
  "mcpServers": {
    "microcms": {
      "command": "node",
      "args": [
        "/[__path__]/microcms-api-mcp-server/dist/index.js"
      ],
      "env": {
        "MICROCMS_API_KEY": "__your_api_key_here__",
        "MICROCMS_BASE_URL": "https://your-service.microcms.io"
      }
    }
  }
}

Windows 環境であれば下記のような設定になるかもしれません。

{
  "mcpServers": {
    "microcms": {
      "command": "C:/Program Files/nodejs/node.exe",
      "args": [
        "C:/[__path__]/microcms-api-mcp-server/dist/index.js"
      ],
      "env": {
        "MICROCMS_API_KEY": "__your_api_key_here__",
        "MICROCMS_BASE_URL": "https://your-service.microcms.io"
      }
    }
  }
}

利用可能なツール

例えば下記のようなプロンプトで microCMS API にアクセスできます。

blog エンドポイントから、最新の記事10件分のタイトルを取得して

get_contents

コンテンツ一覧を取得します。

パラメータ:

  • endpoint: 取得したい microCMS の API エンドポイント(例: 'blog')
  • limit: 取得する件数(オプション、デフォルト: 10、最大: 100)
  • offset: 取得開始位置のオフセット(オプション)
  • orders: 並び替え(オプション、例: 'publishedAt' または '-publishedAt')
  • q: 全文検索クエリ(オプション)
  • filters: フィルタ条件(オプション、例: 'title[contains]テスト')
  • fields: 取得フィールド(オプション、例: 'id,title,publishedAt')
  • depth: 参照の深さ(オプション、1-3)

get_content

特定のコンテンツを取得します。

パラメータ:

  • endpoint: 取得したい microCMS の API エンドポイント(例: 'blog')
  • contentId: 取得したいコンテンツの ID
  • fields: 取得フィールド(オプション、例: 'id,title,publishedAt')
  • depth: 参照の深さ(オプション、1-3)
  • draftKey: 下書きコンテンツを取得するためのキー(オプション)

search_contents

キーワード検索でコンテンツを取得します。

パラメータ:

  • endpoint: 検索対象の microCMS の API エンドポイント(例: 'blog')
  • q: 検索キーワード
  • limit: 取得する件数(オプション、デフォルト: 10、最大: 100)
  • offset: 取得開始位置のオフセット(オプション)
  • fields: 取得フィールド(オプション、例: 'id,title,publishedAt')
  • depth: 参照の深さ(オプション、1-3)

filter_contents

複雑な条件でコンテンツをフィルタリングします。

パラメータ:

  • endpoint: 検索対象の microCMS の API エンドポイント(例: 'blog')
  • filters: フィルター条件(例: 'category[equals]news[and]createdAt[greater_than]2023-01-01')
  • limit: 取得する件数(オプション、デフォルト: 10、最大: 100)
  • offset: 取得開始位置のオフセット(オプション)
  • fields: 取得フィールド(オプション、例: 'id,title,publishedAt')
  • depth: 参照の深さ(オプション、1-3)

利用可能なリソース

microcms://{endpoint}/{contentId}

特定の ID のコンテンツを取得するためのリソース URI テンプレート。

microcms://{endpoint}

コンテンツ一覧を取得するためのリソース URI テンプレート。

ライセンス

MIT

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Lists Tailwind CSS classes in monospaced font

  • tomoyoshi hirata
  • Sony α7IIIマニュアルアシスタント

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • HiveNexus
  • 一个适用于中小型团队的AI聊天机器人,支持DeepSeek,Open AI,Claude和Gemini等车型。 专为中小团队设计的ai聊天应用,支持deepSeek,打开ai,claude,双子座等模型。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • JackKuo666
  • 🔍使AI助手可以通过简单的MCP接口搜索和访问PYPI软件包信息。

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

    Reviews

    3 (1)
    Avatar
    user_3u1aZKNG
    2025-04-17

    I've been using the microcms-api-mcp-server developed by burnworks and it has significantly streamlined my content management tasks. The seamless integration and robust features have made it an indispensable tool in my workflow. Highly recommended for anyone looking to enhance their API management capabilities! Check it out at https://github.com/burnworks/microcms-api-mcp-server.