retroachievements-mcp

retroachievements-mcp

Enables querying and managing RetroAchievements data, including user profiles, achievements, game info, and site rankings through natural language.

Category
访问服务器

README

retroachievements-mcp

A Model Context Protocol server that exposes the RetroAchievements public API to MCP-compatible clients like Claude Code, Claude Desktop, and Cursor.

Built on top of the official @retroachievements/api TypeScript SDK.

What you can do with it

  • "What achievements did I unlock in the last hour?"
  • "Summarize my RetroAchievements activity this month."
  • "Show me the achievement list for Super Mario 64."
  • "Who are the top-ten ranked players right now?"
  • "How rare is each achievement in The Legend of Zelda: A Link to the Past?"

Requirements

Install

git clone https://github.com/Zach-Houston/retroachievements-mcp.git
cd retroachievements-mcp
npm install
npm run build

First-time setup

You have three ways to get the server credentials in place. Pick whichever fits.

Just start asking your MCP client questions like "Show me my RetroAchievements profile." The first call will fail with a structured "credentials not configured" message that gives the assistant two choices to offer you.

1A. In-chat paste (fastest)

You paste your username and Web API key into the chat. The assistant calls ra_save_credentials, which validates the key against the live API and saves it. Downside: the key is in your chat transcript.

1B. Edit a file the assistant scaffolds (key never touches chat)

The assistant calls ra_prepare_credentials_file, which writes a placeholder credentials.env in your user config dir and returns a file:// link. You click the link, paste your key in the file, save. The server picks it up on the next tool call. Upside: key never appears in the transcript.

Either way, credentials end up at:

  • Windows: %APPDATA%\retroachievements-mcp\credentials.env
  • macOS: ~/Library/Application Support/retroachievements-mcp/credentials.env
  • Linux: $XDG_CONFIG_HOME/retroachievements-mcp/credentials.env

The assistant can call ra_status at any time to see whether setup is done, half-done (placeholder file waiting for a key), or not started.

2. Interactive CLI

npm run setup

Walks you through getting an account (if needed), prompts for your Web API key, verifies against the API, and saves to the same user config dir.

3. Env vars in your MCP client config

Set RA_USERNAME and RA_API_KEY as env entries in your MCP client's server config (see Use with Claude Code). The server reads env vars first, then falls back to the stored file. Env vars never touch the chat history.

Configure

The server reads two environment variables at startup:

Variable Value
RA_USERNAME Your RetroAchievements username.
RA_API_KEY Your Web API key (find it at https://retroachievements.org/controlpanel.php).

A .env.example is included as a template — copy it to .env for local dev, or pass the values as env entries in your MCP client config (see below).

If you launch the server without these set, it will still start and respond to MCP clients — but every tool call returns a friendly error explaining how to finish setup. This means a missing key never silently bricks the connection.

Use with Claude Code

Add this to your Claude Code MCP config (~/.claude.json or via claude mcp add):

{
  "mcpServers": {
    "retroachievements": {
      "command": "node",
      "args": ["C:/Users/Z/projects/retroachievements-mcp/dist/index.js"],
      "env": {
        "RA_USERNAME": "YourUserName",
        "RA_API_KEY": "your-web-api-key"
      }
    }
  }
}

Or, after npm link, you can use the retroachievements-mcp binary directly.

Use with Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "retroachievements": {
      "command": "node",
      "args": ["C:/Users/Z/projects/retroachievements-mcp/dist/index.js"],
      "env": {
        "RA_USERNAME": "YourUserName",
        "RA_API_KEY": "your-web-api-key"
      }
    }
  }
}

Tools

Setup

Tool Description
ra_status Reports configured / source (env, file, file-pending, none) / username / file path.
ra_save_credentials In-chat flow: validates a username + key the user typed, then writes them to the user config.
ra_prepare_credentials_file Out-of-chat flow: writes a placeholder file the user opens locally, pastes their key, and saves.

User

Tool Description
ra_user_profile Basic profile (points, rank, motto, avatar).
ra_user_summary Profile + recent games + recent achievements + awards.
ra_user_recent_achievements Achievements unlocked in the last N minutes.
ra_user_recently_played_games Recently played games with progress.
ra_user_completion_progress All started games with completion %, hardcore status, award level.
ra_user_awards Site awards earned (mastery, beaten, events).
ra_user_achievements_between Achievements earned between two ISO dates.

Game

Tool Description
ra_game Basic game metadata (title, console, developer, box art).
ra_game_extended Full game info with the achievement list and unlock counts.

Feed

Tool Description
ra_achievement_of_the_week Currently featured achievement-of-the-week + leaderboard.
ra_top_ten_users Site's top-ten ranked users by hardcore points.

More tools (leaderboards, console game lists, comments, tickets, claims, hashes, distribution) are planned — see src/tools/ to add your own.

Develop

npm run dev     # tsx, no build step
npm run build   # compile to dist/
npm start       # run the compiled server

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选