iRacing MCP 是一个基于 Python 的项目,它将 iRacing 与模型上下文协议(MCP)集成在一起,提供了用于与 iRacing 数据交互并构建自定义应用程序的工具和资源。
要启动 MCP 服务器,请运行:
IRACING_USERNAME="your username" IRACING_PASSWORD="your-password" uvx iracing-mcp
在 settings.json 中添加以下内容(在 mcp.servers 中):
"iracing": {
"command": "uvx",
"args": [
"iracing-mcp@latest"
],
"env": {
"IRACING_USERNAME": "your@email.com",
"IRACING_PASSWORD": "your password"
}
}
在 settings.json 中添加以下内容:
[
"mcpServers": {
"iracing": {
"command": "uvx",
// 原文档此处未完整,保持原样