参考:
MCP免费sever获取(摩搭社区):https://modelscope.cn/mcp?hosted=1&page=1
1、单个MCP服务
网络搜索bing MCP
https://modelscope.cn/mcp/servers/@yan5236/bing-cn-mcp-server
from agno.agent import Agent
from agno.models.openai.like import OpenAILike
from agno.tools.mcp import MCPTools
import asyncio
model = OpenAILike(
id="qwen-plus-latest",
base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",
api_key="sk-424fd68"
)
async def run_agent(message: str) -> None:
# Initialize the MCP tools
mcp_tools = MCPTools(transport="sse", url="https://mcp.api-inference.modelscope.net/44e33ba901cc4f/sse")
# Connect to the MCP server
await mcp_tools.connec