Skip to main content

RapidAPI: cricketapilive/cricbuzz-cricket

Project description

Cricbuzz Cricket MCP Server

English | 简体中文 | 繁體中文

🚀 使用 EMCP 平台快速体验

EMCP 是一个强大的 MCP 服务器管理平台,让您无需手动配置即可快速使用各种 MCP 服务器!

快速开始:

  1. 🌐 访问 EMCP 平台
  2. 📝 注册并登录账号
  3. 🎯 进入 MCP 广场,浏览所有可用的 MCP 服务器
  4. 🔍 搜索或找到本服务器(bach-cricbuzz_cricket
  5. 🎉 点击 "安装 MCP" 按钮
  6. ✅ 完成!即可在您的应用中使用

EMCP 平台优势:

  • 零配置:无需手动编辑配置文件
  • 🎨 可视化管理:图形界面轻松管理所有 MCP 服务器
  • 🔐 安全可靠:统一管理 API 密钥和认证信息
  • 🚀 一键安装:MCP 广场提供丰富的服务器选择
  • 📊 使用统计:实时查看服务调用情况

立即访问 EMCP 平台 开始您的 MCP 之旅!


简介

这是一个 MCP 服务器,用于访问 Cricbuzz Cricket API。

  • PyPI 包名: bach-cricbuzz_cricket
  • 版本: 2.0.0
  • 传输协议: stdio

安装

从 PyPI 安装:

pip install bach-cricbuzz_cricket

从源码安装:

pip install -e .

运行

方式 1: 使用 uvx(推荐,无需安装)

# 运行(uvx 会自动安装并运行)
uvx --from bach-cricbuzz_cricket bach_cricbuzz_cricket

# 或指定版本
uvx --from bach-cricbuzz_cricket@latest bach_cricbuzz_cricket

方式 2: 直接运行(开发模式)

python server.py

方式 3: 安装后作为命令运行

# 安装
pip install bach-cricbuzz_cricket

# 运行(命令名使用下划线)
bach_cricbuzz_cricket

配置

API 认证

此 API 需要认证。请设置环境变量:

export API_KEY="your_api_key_here"

环境变量

变量名 说明 必需
API_KEY API 密钥
PORT 不适用
HOST 不适用

在 Claude Desktop 中使用

编辑 Claude Desktop 配置文件 claude_desktop_config.json:

{
  "mcpServers": {
    "cricbuzz_cricket": {
      "command": "uvx",
      "args": ["--from", "bach-cricbuzz_cricket", "bach_cricbuzz_cricket"],
      "env": {
        "API_KEY": "your_api_key_here"
      }
    }
  }
}

注意: 请将 E:\path\to\cricbuzz_cricket\server.py 替换为实际的服务器文件路径。

可用工具

此服务器提供以下工具:

matchesget_scorecard_v2

Get match scorecard

端点: GET /mcenter/v1/{matchId}/hscard

参数:

  • matchId (string) 必需: The value of matchId field returned in …/matches/list, …/schedules/list, …/series/get-matches, …/teams/get-schedules, …/teams/get-results, …/venues/get-matches endpoints.

matchesrecent

List Recent Matches

端点: GET /matches/v1/recent


matcheslive

GET Live Matches

端点: GET /matches/v1/live


matchesupcoming

List Upcoming Matches

端点: GET /matches/v1/upcoming


matchesget_team

Get players attended the match

端点: GET /mcenter/v1/{matchId}/team/{teamId}

参数:

  • matchId (string) 必需: The value of matchId field returned in …/matches/list, …/schedules/list, …/series/get-matches, …/teams/get-schedules, …/teams/get-results, …/venues/get-matches endpoints.

  • teamId (string) 必需: The value of teamId returned in …/matches/get-info endpoint


matchesget_info

Get match info

端点: GET /mcenter/v1/{matchId}

参数:

  • matchId (string) 必需: The value of matchId field returned in …/matches/list, …/schedules/list, …/series/get-matches, …/teams/get-schedules, …/teams/get-results, …/venues/get-matches endpoints.

matcheslist

List live, recent, upcoming matches

端点: GET /matches/v1/{type}

参数:

  • type (string) 必需: One of the followings : live|recent|upcoming

statsget_icc_rankings

Get ICC rankings

端点: GET /stats/v1/rankings/{category}

参数:

  • formatType (string) 必需: One of the followings : test|odi|t20 (if isWomen parameter is 1, there will be no odi)

  • isWomen (string): Set to 1 to get rankings for women

  • category (string) 必需: One of the followings : batsmen|bowlers|allrounders|teams


statsget_records

Get records

端点: GET /stats/v1/topstats/0

参数:

  • statsType (string) 必需: The value of 'value' field returned in …/stats/get-record-filters endpoint

  • year (string): Specify year to get records. Ex : 2021

  • matchType (string): The value of matchTypeId field returned right in this endpoint

  • team (string): The value of teamId field returned right in this endpoint

  • opponent (string): The value of teamId field returned right in this endpoint


statsget_icc_standings

Get ICC standings

端点: GET /stats/v1/iccstanding/team/matchtype/{matchType}

参数:

  • seasonId (string): The value of seasonStandings/id field returned right in this endpoint

  • matchType (string) 必需: One of the followings : 1-World test championship|2-World cup super league


statsget_record_filters

Get record filters

端点: GET /stats/v1/topstats


newslist_by_category

List latest news by category

端点: GET /news/v1/cat/{categoryId}

参数:

  • categoryId (string) 必需: Filter news by category, the value of id field returned in …/news/get-categories

newslist_by_topic

List latest news by topic

端点: GET /news/v1/topics/{topicId}

参数:

  • topicId (string) 必需: Filter news by topic, the value of id field returned in …/news/get-topics

playersget_career

Get player career

端点: GET /stats/v1/player/{playerId}/career

参数:

  • playerId (string) 必需: The value of id field returned in …/players/list-trending, …/players/search endpoints

playersget_news

Get news by player

端点: GET /news/v1/player/{playerId}

参数:

  • playerId (string) 必需: The value of id field returned in …/players/list-trending, …/players/search endpoints

venuesget_stats

Get stats by venue

端点: GET /stats/v1/venue/{venueId}

参数:

  • venueId (string) 必需: The value of id field returned in …/series/get-venues endpoint

venuesget_info

Get venue info

端点: GET /venues/v1/{venueId}

参数:

  • venueId (string) 必需: The value of id field returned in …/series/get-venues endpoint

teamsget_schedules

Get scheduled matches for a team

端点: GET /teams/v1/{teamId}/schedule

参数:

  • teamId (string) 必需: The value of teamId field returned in …/teams/list endpoint

teamsget_players

Get players by team

端点: GET /teams/v1/{teamId}/players

参数:

  • teamId (string) 必需: The value of teamId field returned in …/teams/list endpoint

teamsget_results

Get matched results by team

端点: GET /teams/v1/{teamId}/results

参数:

  • teamId (string) 必需: The value of teamId field returned in …/teams/list endpoint

teamsget_stats_filters

Get supported filters

端点: GET /stats/v1/team/{teamId}

参数:

  • teamId (string) 必需: The value of teamId field returned in …/teams/list endpoint

seriesget_matches

Get recent and upcoming matches by series

端点: GET /series/v1/{seriesId}

参数:

  • seriesId (string) 必需: The value of id field returned in …/series/list or …/series/list-archives endpoints.

seriesget_squads

Get squads by series

端点: GET /series/v1/{seriesId}/squads

参数:

  • seriesId (string) 必需: The value of id field returned in …/series/list or …/series/list-archives endpoints.

seriesget_points_table

Get points table by series

端点: GET /stats/v1/series/{seriesId}/points-table

参数:

  • seriesId (string) 必需: The value of id field returned in …/series/list or …/series/list-archives endpoints.

seriesget_stats_filters

Get supported filters

端点: GET /stats/v1/series/{seriesId}

参数:

  • seriesId (string) 必需: The value of id field returned in …/series/list or …/series/list-archives endpoints.

get_image

This endpoint is used to get image by id

端点: GET /img/v1/i1/{imageId}/i.jpg

参数:

  • imageId (string) 必需: Add 'c' in the front of imageId

photosget_gallery

Get photo gallery

端点: GET /photos/v1/detail/{galleryId}

参数:

  • galleryId (string) 必需: galleryId from photos/list service

photoslist

List photo galleries

端点: GET /photos/v1/index


newsget_topics

Get all available topics

端点: GET /news/v1/topics


newsget_categories

Get all available categories

端点: GET /news/v1/cat


newsdetail

Get news detail

端点: GET /news/v1/detail/{newsId}

参数:

  • newsId (string) 必需: The value of story/id field returned in …/news/list …/news/list-by-category …/news/list-by-topic endpoint

newslist

List latest news

端点: GET /news/v1/{type}

参数:

  • type (string) 必需: One of the followings : index|premiumIndex

playersget_bowling

Get player's bowling

端点: GET /stats/v1/player/{playerId}/bowling

参数:

  • playerId (string) 必需: The value of id field returned in …/players/list-trending, …/players/search endpoints

playersget_batting

Get player's batting

端点: GET /stats/v1/player/{playerId}/batting

参数:

  • playerId (string) 必需: The value of id field returned in …/players/list-trending, …/players/search endpoints

playersget_info

Get player info

端点: GET /stats/v1/player/{playerId}

参数:

  • playerId (string) 必需: The value of id field returned in …/players/list-trending, …/players/search endpoints

playerssearch

Search player by name

端点: GET /stats/v1/player/search

参数:

  • plrN (string) 必需: Example value: Tucker

playerslist_trending

List trending players

端点: GET /stats/v1/player/trending


venuesget_matches

Get scheduled matches by venue

端点: GET /venues/v1/{venueId}/matches

参数:

  • venueId (string) 必需: The value of id field returned in …/series/get-venues endpoint

teamsget_news

Get news by team

端点: GET /news/v1/team/{teamId}

参数:

  • teamId (string) 必需: The value of teamId field returned in …/teams/list endpoint

teamslist

List teams

端点: GET /teams/v1/{type}

参数:

  • type (string) 必需: international|league|domestic|women

seriesget_venues

Get venues by series

端点: GET /series/v1/{seriesId}/venues

参数:

  • seriesId (string) 必需: The value of id field returned in …/series/list or …/series/list-archives endpoints.

seriesget_players

Get players by squad and series

端点: GET /series/v1/{seriesId}/squads/{squadId}

参数:

  • seriesId (string) 必需: The value of id field returned in …/series/list or …/series/list-archives endpoints.

  • squadId (string) 必需: The value of squadId field returned in …/series/get-squads endpoint


seriesget_news

Get news by series

端点: GET /news/v1/series/{seriesId}

参数:

  • seriesId (string) 必需: The value of id field returned in …/series/list or …/series/list-archives endpoints.

serieslist_archives

List archived series

端点: GET /series/v1/archives/{type}

参数:

  • year (string): Example value:

  • lastId (string): For paging purpose, leave empty to load the first page, or the value of id field returned right in this endpoint.

  • type (string) 必需: One of the followings : international|league|domestic|women


serieslist

List series

端点: GET /series/v1/{type}

参数:

  • type (string) 必需: One of the followings : international|league|domestic|women

matchesget_scorecard

Get match scorecard

端点: GET /mcenter/v1/{matchId}/scard

参数:

  • matchId (string) 必需: The value of matchId field returned in …/matches/list, …/schedules/list, …/series/get-matches, …/teams/get-schedules, …/teams/get-results, …/venues/get-matches endpoints.

matchesget_leanback

Get match leanback

端点: GET /mcenter/v1/{matchId}/leanback

参数:

  • matchId (string) 必需: The value of matchId field returned in …/matches/list, …/schedules/list, …/series/get-matches, …/teams/get-schedules, …/teams/get-results, …/venues/get-matches endpoints.

matchesget_commentaries

Get match commentaries

端点: GET /mcenter/v1/{matchId}/comm

参数:

  • iid (string): innings Id (Ex : 1)

  • tms (string): For paging purpose, leave empty to load the first page, or an Epoch timestamp value in milliseconds (Ex : 1640883600000) to load the next page. You are interested in the 'timestamp' field returned right in this endpoint.

  • matchId (string) 必需: The value of matchId field returned in …/matches/list, …/schedules/list, …/series/get-matches, …/teams/get-schedules, …/teams/get-results, …/venues/get-matches endpoints.


matchesget_overs

Get match overall

端点: GET /mcenter/v1/{matchId}/overs

参数:

  • iid (string): innings Id (Ex : 1)

  • tms (string): For paging purpose, leave empty to load the first page, or an Epoch timestamp value in milliseconds (Ex : 1640883600000) to load the next page. You are interested in the 'timestamp' field returned right in this endpoint.

  • matchId (string) 必需: The value of matchId field returned in …/matches/list, …/schedules/list, …/series/get-matches, …/teams/get-schedules, …/teams/get-results, …/venues/get-matches endpoints.


matchesget_commentaries_v2

Get match commentaries

端点: GET /mcenter/v1/{matchId}/hcomm

参数:

  • iid (string): innings Id (Ex : 1)

  • tms (string): For paging purpose, leave empty to load the first page, or an Epoch timestamp value in milliseconds (Ex : 1640883600000) to load the next page. You are interested in the 'timestamp' field returned right in this endpoint.

  • matchId (string) 必需: The value of matchId field returned in …/matches/list, …/schedules/list, …/series/get-matches, …/teams/get-schedules, …/teams/get-results, …/venues/get-matches endpoints.


scheduleslist

List scheduled matches

端点: GET /schedule/v1/{type}

参数:

  • lastTime (string): For paging purpose, leave empty to load the first page, or an Epoch timestamp value in milliseconds (Ex : 1640883600000) to load the next page. You are interested in the 'startDt' field returned right in this endpoint.

  • type (string) 必需: One of the followings : international|league|domestic|women


技术栈

  • 传输协议: stdio
  • HTTP 客户端: httpx

开发

此服务器由 API-to-MCP 工具自动生成。

版本: 2.0.0

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

bach_cricbuzz_cricket-2.0.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.

bach_cricbuzz_cricket-2.0.0-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file bach_cricbuzz_cricket-2.0.0.tar.gz.

File metadata

  • Download URL: bach_cricbuzz_cricket-2.0.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for bach_cricbuzz_cricket-2.0.0.tar.gz
Algorithm Hash digest
SHA256 e99dd8801730785df38bc65aa53453c315421e7b584a1302d3d7f231a213f581
MD5 99bb4959d8243cbe890988026e1c2060
BLAKE2b-256 cce2990eb62790bcf7e3e6a32f043704bb8edc27de0ca77155eb6537fb6f187f

See more details on using hashes here.

File details

Details for the file bach_cricbuzz_cricket-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for bach_cricbuzz_cricket-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85b7f727deeb4301f642eb3e50f35f8162ea43c1bdac7cdf3e2f6c0e18e62c29
MD5 fef5f00a1a9b0721ddfef32e101698f6
BLAKE2b-256 55bc1c5582d94d2cecbcb708739aedf910975f8892408a037c802c6f170165a8

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