MCP.so
ログイン

MCP Server Demo

@sotayamashita

基本情報

カテゴリ

その他

トランスポート

stdio

作者

sotayamashita

MCP Server Demo について

概要はまだありません

MCP Server Demo の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "mcp-server-demo-sotayamashita": {
      "command": "uv",
      "args": [
        "init",
        "mcp-server-demo"
      ]
    }
  }
}

MCP Server Demo のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is MCP Server Demo?

MCP Server Demo is a simple Model Context Protocol (MCP) server created for learning and testing. It provides an addition tool and a dynamic greeting resource, and can be tested with the MCP Inspector or integrated with Claude Desktop.

How to use MCP Server Demo?

Use uv init mcp-server-demo to create the project and uv run mcp dev server.py to launch the MCP Inspector. For Claude Desktop integration, run uv run mcp install server.py, then ensure the absolute path to uv is set in the Claude config file. Prerequisites include uv and Python 3.12.

Key features of MCP Server Demo

  • Provides an add tool that sums two integers.
  • Provides a get_greeting resource with a dynamic name parameter.
  • Testable via the MCP Inspector web interface.
  • Installable into Claude Desktop as a configured MCP server.
  • Built using the FastMCP helper from the Python SDK.

Use cases of MCP Server Demo

  • Learning how to create and test a basic MCP server.
  • Demonstrating tool and resource implementation with FastMCP.
  • Integrating a custom MCP server with Claude Desktop for AI-powered operations.

よくある質問

1

What tools does MCP Server Demo provide?

It provides an `add` tool that takes two integers and returns their sum.

2

What resources does MCP Server Demo provide?

It provides a dynamic `get_greeting` resource that returns a personalized greeting based on a name parameter.

3

How does Claude Desktop select which MCP server tools to use?

Claude connects to all configured MCP servers but selects tools based on the content of the user's query. If the query content is not suitable for using tools, the tools will not be used.

4

Can I retrieve resources from Claude Desktop?

There appears to be an issue retrieving resources from Claude Desktop. This section requires further investigation.

5

What prerequisites are needed to run MCP Server Demo?

You need the [uv](https://docs.astral.sh/uv/getting-started/installation/) package manager and Python 3.12. The SDK dependency is `mcp[cli]`.

コメント

「その他」の他のコンテンツ