1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Claude DesktopでMCP Serverを使用する

1
Posted at

はじめに

生成AIについて知識や経験を身につけていくにあたり、手始めにClaude DesktopでMCP Serverを設定して使用してみました。

Claude Desktop

ClaudeはAnthropic(アンソロピック)社が開発した安全性・長文処理・自然な対話能力に優れた高性能な生成AIであり、これをデスクトップアプリにしたものがClaude Desktopです。
また、Claude DesktopではMCP Serverを設定し、サーバーに対して処理のリクエストを行うことができます。MCP ServerMCP(Model Context Protocol) というAnthropic社によって発表された開発者がデータソースとAI搭載ツール間の安全な双方向接続を構築できるようにするオープンスタンダードな規格(プロトコル)に基づいて作成されています。

image.png

Claude Desktopのダウンロード

1.以下公式サイトよりCloude Desktopをダウンロードする。

2.ダウンロード完了後、Claude Desktopを起動する。

スクリーンショット 2026-01-28 14.32.47.png

3.アカウント作成、利用プランの設定を行う。(今回は無料プランを使用)

スクリーンショット 2026-01-28 14.33.58.png

スクリーンショット 2026-01-28 14.34.32.png

4.以上でClaude Desktopを使用する準備は完了です。

スクリーンショット 2026-01-30 17.03.12.png

MCP Serverの設定

1.設定>開発者から「設定を編集」をクリックする。

スクリーンショット 2026-01-28 14.39.14.png

2.claude_desktop_config.jsonを開き、MCPサーバー(Filesystem MCP Server)を設定する。

claude_desktop_config.json
{
    "mcpServers": {
        "filesystem": {
            "command": "npx-for-claude",
            "args": [
                "-y",
                "@modelcontextprotocol/server-filesystem",
                "/Users/[任意のユーザー名]/Desktop"
            ]
        }
    }
}

公式のclaude_desktop_config.jsonの"command"の設定値は"npx"となっていますが、私の場合は以下のエラーが発生したため、下記記事を参考に修正しています。

スクリーンショット 2026-01-30 10.35.41.png

3.Claude Desktopを再起動した後にMCP Serverの設定を確認すると、filesystem MCP Server が追加されています。

スクリーンショット 2026-01-30 17.30.22.png

4.以上でMCP Serverの設定は完了です。
試しにDesktopにtestフォルダを作成してくださいとリクエストを行うと、デスクトップにtestフォルダが作成されることが確認できました。

スクリーンショット 2026-01-30 17.44.18.png

おわりに

今回はClaude DesktopをダウンロードしてMCP Serverを設定、フォルダ作成のリクエストを行って、対話形式で処理が実行されることが確認できました。まだ、生成AI活用の一端を経験しただけですが、うまく活用することでかなり作業を効率化できそうだなと感じました。引き続きMCPについて学んでいきたいと思います。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?