Skip to main content

MCP server exposing osu! API v2 as tools for Claude and other MCP clients

Project description

osu-mcp

PyPI Tests Coverage License: MIT

osu-mcp is a Model Context Protocol (MCP) server that exposes the osu! API v2 as tools for Claude Desktop and other MCP clients. Ask Claude about your osu! profile, compare players, search beatmaps, browse rankings — all in natural language.

🚧 v0.1 — demo GIF placeholder (recorded in v0.1.1).

Quickstart

1. Install

uv tool install osu-mcp
# or
pip install osu-mcp

2. Get osu! API credentials

  1. Go to https://osu.ppy.sh/home/account/edit
  2. Scroll to OAuth, click New OAuth Application
  3. Name: anything (e.g., "Claude Desktop"); Callback URL: leave blank.
  4. Copy the Client ID and Client Secret.

3. Configure credentials

Option A — environment variables (recommended):

export OSU_CLIENT_ID=12345
export OSU_CLIENT_SECRET=your-client-secret

Option B — config file at ~/.config/osu-mcp/config.toml (Linux/Mac) or %APPDATA%\osu-mcp\config.toml (Windows):

client_id = 12345
client_secret = "your-client-secret"

4. Wire up Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "osu": {
      "command": "uvx",
      "args": ["osu-mcp"],
      "env": {
        "OSU_CLIENT_ID": "12345",
        "OSU_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Restart Claude Desktop. You should see "osu" in the MCP servers list.

Available tools (12)

Tool Description
get_user_summary Profile + stats; optionally embed recent/best/firsts scores
compare_users Side-by-side comparison of 2-5 users
get_user_scores List a user's best/recent/firsts scores
get_score_details Full attributes of a specific score
search_beatmaps Search beatmapsets with filters (mode, status, difficulty, length, BPM)
get_beatmap_details Full attributes of a beatmap (AR/OD/CS/HP, BPM, max combo)
get_beatmap_scores Top scores on a beatmap, filterable by mods
get_beatmapset Full beatmapset with all difficulties
get_rankings pp/score/charts rankings, global or by country
get_country_top Top N players of a country in pp ranking
get_news_posts Recent osu! news posts
get_seasonal_backgrounds Active seasonal backgrounds

Full reference: docs/tools.md.

Examples

In Claude Desktop, try:

"Show me peppy's osu! stats"

"Compare Cookiezi and WhiteCat on accuracy and pp"

"What are the top 10 osu! players from Ecuador?"

"Find me some 200 BPM streamy ranked maps"

Development

git clone https://github.com/Osyanne/osu-mcp.git
cd osu-mcp
uv sync
uv run pytest                      # unit + smoke
uv run pytest -m integration       # integration (needs real creds)
uv run ruff check .
uv run mypy --strict src/

License

MIT — see LICENSE.

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

osu_mcp-0.1.1.tar.gz (141.0 kB view details)

Uploaded Source

Built Distribution

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

osu_mcp-0.1.1-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file osu_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: osu_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 141.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for osu_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 12ce39a227d918a132a7529ecafa919ec5fc9d69da04ffa4437272cb7b9bdc27
MD5 24362ee7286c7642d1281e5612e29037
BLAKE2b-256 dedaf7f12977050170e5170a2f416edec6ee61f6eaa99926fd135a358f89f4c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for osu_mcp-0.1.1.tar.gz:

Publisher: publish.yml on Osyanne/osu-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file osu_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: osu_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for osu_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2672cf23ca2d47aae50030465860f34defc96206c687fefd73ba51efc9ec60a9
MD5 c3c4dab08c42fc61eada221256f61eb2
BLAKE2b-256 e9114e831b706e3ebd1b28f278492f36c3f7d0d78562b59e17baf7d38ba2ee3f

See more details on using hashes here.

Provenance

The following attestation bundles were made for osu_mcp-0.1.1-py3-none-any.whl:

Publisher: publish.yml on Osyanne/osu-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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