Model Context Protocol(MCP) 编程极速入门 MCP Server

Model Context Protocol(MCP) 编程极速入门

Local serverstdioPython

What is the Model Context Protocol(MCP) 编程极速入门 MCP Server?

Model Context Protocol(MCP) 编程极速入门

What you get

async with httpx.AsyncClient() as client: response = await client.post( 'https://open.bigmodel.cn/api/paas/v4/tools', headers={'Authorization': '换成你自己的API KEY'}, json={ 'tool': 'web-search-pro', 'messages': [ {'role': 'user', 'content': query} ], 'stream': False } )

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
web_search
delete_file
image_generation

How to install the Model Context Protocol(MCP) 编程极速入门 MCP Server

{
  "mcpServers": {
    "web-search-server": {
      "command": "uv",
      "args": [
        "--directory",
        "D:/projects/mcp_getting_started",
        "run",
        "web_search.py"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Example prompts to try

  • “Use Model Context Protocol(MCP) 编程极速入门 to Prompt.”
  • “Use Model Context Protocol(MCP) 编程极速入门 to Resource.”

Frequently asked questions

Python 3.11, `uv`, the Python packages `mcp[cli]`, `httpx`, `openai`, and `python-dotenv`. Node.js is also required for the MCP Inspector.