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]`.

评论

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