Skip to main content

Add your description here

Project description

AstrBot MCP Server

本项目是一个基于 FastMCP 的 AstrBot MCP 服务器,通过 HTTP 与已有的 AstrBot 实例交互。

本地运行

在项目根目录执行(需要安装 uv):

uv sync
uv run --project . astrbot-mcp

如果看到 FastMCP 的 banner,说明服务启动成功。

MCP 配置(使用 uv + console script)

在支持 MCP 的客户端中,推荐使用如下配置来启动本服务(示例为 JSON):

{
  "mcpServers": {
    "astrbot-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "astrbotmcp",
        "astrbot-mcp.exe"
      ],
      "env": {
        "ASTRBOT_BASE_URL": "http://127.0.0.1:6185",
        "ASTRBOT_TIMEOUT": "30",
        "ASTRBOT_USERNAME": "your_username",
        "ASTRBOT_PASSWORD": "your_password"
      }
    }
  }
}
"mcpServers": {
"astrbot-mcp": {
"command": "uv",
"args": [
"run",
"--project",
"D:/程序/astrbotmcp",
"python",
"-m",
"astrbot_mcp.server"
],
"env": {
"ASTRBOT_BASE_URL": "http://127.0.0.1:6185",
"ASTRBOT_TIMEOUT": "30",
"ASTRBOT_USERNAME": "user",
"ASTRBOT_PASSWORD": "password"
}
}
}
}

注意:

  • 使用 uv 而不是系统 python,避免跑到全局 Python 3.13 环境。
  • 使用 --project /path/to/astrbotmcp 指定项目路径。
  • 使用 astrbot-mcp(console script),它会调用 astrbot_mcp.server:main
  • 请您务必配置pypl代理:setx UV_INDEX_URL https://pypi.tuna.tsinghua.edu.cn/simple

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

astrbotmcp-0.2.0.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

astrbotmcp-0.2.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file astrbotmcp-0.2.0.tar.gz.

File metadata

  • Download URL: astrbotmcp-0.2.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for astrbotmcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e22ba04ba6a1e2f168f67c4ea6fe0f95f30537f623a66120f723620de0f32348
MD5 38e7896dc50b7c2fe828a705f56c5704
BLAKE2b-256 001eca3e6c34f5241361afe5c2a9fe53a8434cb61e8e182b2c3ce44586909439

See more details on using hashes here.

File details

Details for the file astrbotmcp-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: astrbotmcp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for astrbotmcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9f0cb1ea3467b54ff0aa071730f2f798bd1241208e9b9479df62115b4bd0def0
MD5 c92a130897c09e8fb0921a0f92ceebe1
BLAKE2b-256 fe37f26034610f59ee44f23c885b0811bb52c1dc4edbc852d4d66c1885bb96b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page