基于 FastMCP 获取指定网址的网页内容,可提取正文、生成摘要并校验 URL。
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add url-fetcher -- python path/to/your/url_fetcher_server.py~/.codex/config.toml
[mcp_servers.url-fetcher]
command = "python"
args = ["path/to/your/url_fetcher_server.py"]
# codex mcp add url-fetcher -- python path/to/your/url_fetcher_server.py~/.cursor/mcp.json
{
"mcpServers": {
"url-fetcher": {
"command": "python",
"args": [
"path/to/your/url_fetcher_server.py"
]
}
}
}.vscode/mcp.json
{
"servers": {
"url-fetcher": {
"type": "stdio",
"command": "python",
"args": [
"path/to/your/url_fetcher_server.py"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"url-fetcher": {
"command": "python",
"args": [
"path/to/your/url_fetcher_server.py"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"url-fetcher": {
"command": "python",
"args": [
"path/to/your/url_fetcher_server.py"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"url-fetcher": {
"command": "python",
"args": [
"path/to/your/url_fetcher_server.py"
]
}
}
}