article
README
🚀 快速开始
检查
uv add "mcp[cli]" google-auth google-auth-oauthlib google-api-python-client
mcp dev server.py
安装
Claude Desktop
- 设置电子邮件地址
- 设置OAuth 2.0凭证并保存到
.env - 对Claude Desktop进行安装
mcp install server.py --env-file .env
uv add "mcp[cli]" google-auth google-auth-oauthlib google-api-python-client
mcp dev server.py
.envmcp install server.py --env-file .env
Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive
Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed