MCP server exposing osu! API v2 as tools for Claude and other MCP clients
Project description
osu-mcp
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
- Go to https://osu.ppy.sh/home/account/edit
- Scroll to OAuth, click New OAuth Application
- Name: anything (e.g., "Claude Desktop"); Callback URL: leave blank.
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file osu_mcp-0.1.0.tar.gz.
File metadata
- Download URL: osu_mcp-0.1.0.tar.gz
- Upload date:
- Size: 138.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
855c7e258ad765e70f2dfd2b137b3adea1fecf8105f9e6122f54301b8b5705b9
|
|
| MD5 |
4e621603bbae9861f718b913c2f9eede
|
|
| BLAKE2b-256 |
daf4f17ac640f2ba24613dda08abcad42e7967216d23620f9e97f2504f0f8cdf
|
Provenance
The following attestation bundles were made for osu_mcp-0.1.0.tar.gz:
Publisher:
publish.yml on Osyanne/osu-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
osu_mcp-0.1.0.tar.gz -
Subject digest:
855c7e258ad765e70f2dfd2b137b3adea1fecf8105f9e6122f54301b8b5705b9 - Sigstore transparency entry: 1610460451
- Sigstore integration time:
-
Permalink:
Osyanne/osu-mcp@9ab3b759a88cb80dfe8f82d9bb88171644c00408 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Osyanne
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9ab3b759a88cb80dfe8f82d9bb88171644c00408 -
Trigger Event:
push
-
Statement type:
File details
Details for the file osu_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: osu_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2588186485c58d0a803c7821e86556159618e7d30bff069ac42d241f49c066d2
|
|
| MD5 |
0021aa00bb63fc96cb85f9fa15cc98eb
|
|
| BLAKE2b-256 |
4504ec91e024bbb69b497129d69a8c77633db227b7fe76440e204bee31f7df70
|
Provenance
The following attestation bundles were made for osu_mcp-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on Osyanne/osu-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
osu_mcp-0.1.0-py3-none-any.whl -
Subject digest:
2588186485c58d0a803c7821e86556159618e7d30bff069ac42d241f49c066d2 - Sigstore transparency entry: 1610460598
- Sigstore integration time:
-
Permalink:
Osyanne/osu-mcp@9ab3b759a88cb80dfe8f82d9bb88171644c00408 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Osyanne
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9ab3b759a88cb80dfe8f82d9bb88171644c00408 -
Trigger Event:
push
-
Statement type: