ポッドキャストに戻るClaude
Claude Code 101
Claude Code における MCP
Model contact protocol is an open standard that lets Claude code connect to external tools and data sources.
Model Context Protocol は、Claude Code が外部ツールやデータソースに接続できるオープンスタンダードです。
[music]
[music]
When you ask a question, Claude will automatically understand when it should use those tools to better understand your query.
質問をすると、Claude はクエリをより深く理解するためにいつツールを使うべきかを自動的に判断します。
Context is one of the most important parts when working with Claude code.
Claude Code を使用する際、context は最も重要な要素の1つです。
A lot of your context lives elsewhere like your databases, your productivity apps, or [music] in public repositories.
あなたの context の多くはデータベース、生産性アプリ、または [music] 公開リポジトリなど他の場所に存在します。
This is where MCP comes [music] in.
これが MCP の出番 [music] です。
First, it's important to understand the concept of tools when talking about Agentic AI.
まず、Agentic AI について話す際には、ツールの概念を理解することが重要です。
Tools give agents like Claude code the ability to perform actions in order for them to better complete their tasks.
ツールは Claude Code などのエージェントに、タスクをより効果的に完了するための行動を実行する能力を与えます。
This is different from other AI where you just get an output back directly in text usually.
これは、テキストで出力が直接返ってくるだけの他の AI とは異なります。
For example, if your team is using Linear as our project management software, you can add a Linear MCP server to bring in the details of your specific issues.
例えば、チームがプロジェクト管理ソフトウェアとして Linear を使用している場合、Linear MCP サーバーを追加することで、特定の issue の詳細を取り込めます。
If you want to get up-to-date documentation of a dependency that you're working with, then the Context 7 MCP server will provide Claude code with that.
作業中の依存関係の最新ドキュメントを取得したい場合、Context 7 MCP サーバーが Claude Code にそれを提供します。
There are also hundreds of different connectors at claude.com/connectors.
また、claude.com/connectors には数百種類のコネクターがあります。
You can add MCP servers with the Claude MCP add command.
Claude MCP add コマンドを使って MCP サーバーを追加できます。
There are two main types.
主に2つの種類があります。
HTTP servers are for remote services.
HTTP サーバーはリモートサービス向けです。
These are hosted by the service provider and connect over the network.
これらはサービスプロバイダーによってホストされ、ネットワーク経由で接続します。
STDIO servers are for local processes that run on your machine.
STDIO サーバーはあなたのマシン上で動作するローカルプロセス向けです。
You can manage your servers with the /mcp inside a Claude code session to see what's connected, the status, and disable servers that you don't want to use.
Claude Code セッション内で /mcp を使用してサーバーを管理し、接続状況やステータスを確認し、使用したくないサーバーを無効にできます。
MCP servers can be scoped in three different ways.
MCP サーバーは3つの異なるスコープで設定できます。
One, local means it's only available in the current project for you.
1つ目、local はあなたの現在のプロジェクト内でのみ利用可能です。
Two, the user, which means it's available across all your projects.
2つ目、user はすべてのプロジェクトにわたって利用可能です。
And three, project scope uses a .mcp.json file that you check into your version control, so anyone working on the code base gets the exact same servers automatically.
3つ目、project スコープは .mcp.json ファイルを使用し、バージョン管理にコミットすることで、コードベースで作業するすべての人が自動的に同じサーバーを取得します。
Now, one thing to be aware of is that MCP servers add tool definitions to your context window, even when you're not using them.
ここで注意すべき点として、MCP サーバーは使用していない場合でも、ツール定義を context ウィンドウに追加します。
So, if you have a lot of servers configured, this eats into your available context.
そのため、多くのサーバーを設定していると、利用可能な context が消費されます。
Run the {slash} MCP command to see what's connected and disable anything that you're not actively using or don't think that you're going to use.
/mcp コマンドを実行して接続中のサーバーを確認し、積極的に使用していない、または使用しないと思われるものを無効にしてください。
If a tool has a CLI equivalent like GH for GitHub or AWS for AWS, the CLI is more context efficient because it doesn't add persistent tool definitions.
ツールに GitHub の gh や AWS の aws のような CLI の同等品がある場合、CLI は永続的なツール定義を追加しないため、context 効率が高くなります。
You also might benefit from using a skill in this scenario.
このシナリオでは skill を使用することでも恩恵を受けられるかもしれません。
A skill has a name and a description that is loaded into context.
skill には名前と説明があり、context に読み込まれます。
Similar to MCP, when Cloud thinks it needs to use that skill, it then decides to load it into the context window, which is where you could put the command line interface tools.
MCP と同様に、Claude がその skill を使用する必要があると判断すると、context ウィンドウに読み込むことを決定します。ここにコマンドラインインターフェースツールを置くことができます。
If your MCP tools exceed 10% of your context window, Cloud code will automatically switch to tool search mode, which will discover the right tools on demand, but this might not work as well since it's just not in the
MCP ツールが context ウィンドウの 10% を超えると、Claude Code は自動的にツール検索モードに切り替わり、適切なツールをオンデマンドで見つけますが、context に含まれていないため、効果が落ちる可能性があります。
[music]
[music]
Now, a quick recap.
では、簡単にまとめます。
MCP connects Cloud code to your external tools and data
MCP は Claude Code を外部ツールやデータに接続します
[music]
[music]
Add servers with Cloud MCP add, scope them to your project with .mcp.json so that your team gets them automatically, and keep an eye on the context usage by disabling servers [music] that you're not actively using.
Claude MCP add でサーバーを追加し、.mcp.json でプロジェクトにスコープを設定してチームが自動的に取得できるようにし、積極的に使用していないサーバーを無効にして context 使用量に注意してください。 [music]