MCP.so
登录

MCP Server Demo

@sotayamashita

关于 MCP Server Demo

暂无概览

基本信息

分类

其他

运行时

python

传输方式

stdio

发布者

sotayamashita

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-server-demo-sotayamashita": {
      "command": "uv",
      "args": [
        "init",
        "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.

FAQ from MCP Server Demo

What tools does MCP Server Demo provide?

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

What resources does MCP Server Demo provide?

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

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.

Can I retrieve resources from Claude Desktop?

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

What prerequisites are needed to run MCP Server Demo?

You need the uv package manager and Python 3.12. The SDK dependency is mcp[cli].

评论

其他 分类下的更多 MCP 服务器