Token导航 LogoToken导航TokenDH.com
Simple Tool logo
运维云端stdio官方级别未说明来源级核验

Simple Tool

MCP Server

一个简单的MCP服务器,提供网站抓取功能,适用于需要快速获取网页内容的场景。

工具数

1

提示词数

0

GitHub Stars

0

资源数

0
PythonSession认证本地部署

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

zxsimple

提供方

zxsimple

最后核验

2026/5/17 20:22

运行时

Python

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

uv run mcp-simple-tool

详细介绍

一个简单的MCP服务器,它公开了一个网站获取工具。

用法

使用stdio(默认)或SSE传输启动服务器:

# Using stdio transport (default)
uv run mcp-simple-tool

# Using SSE transport on custom port
uv run mcp-simple-tool --transport sse --port 8000

服务器公开了一个名为“fetch”的工具,该工具接受一个必需的参数:

  • url:要获取的网站的URL

示例

使用MCP客户端,您可以使用STDIO传输这样的工具:

import asyncio
from mcp.client.session import ClientSession
from mcp.client.stdio import StdioServerParameters, stdio_client

async def main():
    async with stdio_client(
        StdioServerParameters(command="uv", args=["run", "mcp-simple-tool"])
    ) as (read, write):
        async with ClientSession(read, write) as session:
            await session.initialize()

            # List available tools
            tools = await session.list_tools()
            print(tools)

            # Call the fetch tool
            result = await session.call_tool("fetch", {"url": "https://example.com"})
            print(result)

asyncio.run(main())

目录标签

目录标签

PythonSession认证本地部署网站抓取MCP服务器网页内容获取

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

session

运行时(runtime,运行环境)

Python

工具数量(toolCount,工具数)

1

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiosession部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP