{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_6c3jgy4r2m75","handle":"swanlab-mcp","url":"https://wellknown.network/agents/swanlab-mcp","links":{"self":"https://wellknown.network/agents/swanlab-mcp/record.json","html":"https://wellknown.network/agents/swanlab-mcp","markdown":"https://wellknown.network/agents/swanlab-mcp/record.md","api":"https://wellknown.network/api/v1/agents/swanlab-mcp","status":"https://wellknown.network/api/v1/agents/swanlab-mcp/status","claim":"https://wellknown.network/agents/swanlab-mcp/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/swanlab-mcp/claim.json","badge":"https://wellknown.network/agents/swanlab-mcp/badge.svg","openapi":"https://wellknown.network/openapi.json"},"ard":{"identifier":"urn:air::server:swanlab-mcp","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"swanlab-mcp","summary":"MCP (Model Context Protocol) server support for SwanLab","description":"<div align=\"center\">\n\n# SwanLab MCP Server\n\n[![][github-shield]][github-shield-link] &nbsp;  &nbsp; [![][pypi-version-shield]][pypi-version-shield-link] &nbsp;  &nbsp; [![][license-shield]][license-shield-link]\n\n</div>\n\n> A Model Context Protocol (MCP) server implementation for SwanLab, combining SwanLab-OpenAPI & FastMCP.\n\n## ✨ Features\n\n### Core Features\n\n- **Workspace Queries** - List accessible workspaces and enumerate workspace projects\n- **Project Queries** - List projects and inspect a specific project with run summaries\n- **Run Queries** - Inspect runs with normalized fields (`id`, `state`, `profile`, `user`)\n- **Metric Queries** - Fetch metric tables with consistent `columns`, `rows`, and `total`\n- **API Integration** - Provide read-only access through SwanLab OpenAPI (`swanlab.Api`)\n\n### Tech Stack\n\n- **Language**: Python 3.12+\n- **Core Framework**: FastMCP (v2.14.4+)\n- **API Client**: SwanLab SDK\n- **Config Management**: Pydantic Settings\n\n## 🚀 Quick Start\n\n### ❗️Configuration\n\nAdd the following configuration to your relative mcp config list\n\n```json\n{\n  \"mcpServers\": \n    ...\n    {\n    \"swanlab-mcp\": {\n      \"command\": \"uvx\",\n      \"args\": [\"--from\", \"swanlab-mcp\", \"swanlab_mcp\", \"--transport\", \"stdio\"],\n      \"env\": {\n        \"SWANLAB_API_KEY\": \"your_api_key_here\"\n      }\n    }\n  }\n}\n```\n\nFor `Claude Code` Users, you can config like this:\n\n```bash\nclaude mcp add --env SWANLAB_API_KEY=<your_api_key> -- swanlab_mcp uvx --from swanlab-mcp swanlab_mcp --transport stdio\n```\n\n### Prerequisites\n\n- Python >= 3.12\n- SwanLab API Key (get it from [SwanLab](https://swanlab.cn))\n\n### Installation\n\n```bash\n# Using uv (recommended)\nuv sync\n\n# Or using pip\npip install -e .\n```\n\n### Configuration\n\n#### Environment Variables\n\nCreate a `.env` file and configure your API key:\n\n```bash\ncp .env.template .env\n```\n\nEdit the `.env` file:\n\n```env\nSWANLAB_API_KEY=your_api_key_here\n```\n\n### Running\n\n```bash\n# Using stdio transport (default)\npython -m swanlab_mcp\n\n# Or using CLI\n…","publisher":null,"homepage":null,"repository":null,"version":"0.0.3","license":"MIT","protocols":["mcp"],"tags":["mcp"],"pricing":null,"endpoints":[{"url":"pypi:swanlab-mcp","type":"package_pypi","auth":null,"probeable":false}],"skills":null,"tools":null,"extra":null,"attribution":{"kind":"pypi","name":"pypi","license":"pypi","summary":"pypi","version":"pypi","description":"pypi"}},"derived":{"capabilities":[{"slug":"data.apis","name":"API Access","confidence":1,"provenance":"derived"}],"categories":["data"],"language":"en"},"observed":{"status":"unknown","statusReason":"Distributed as a package to run locally; no network endpoint to check.","lastOkAt":null,"lastProbedAt":null,"statusComputedAt":null,"reliability30d":null,"latestObservations":[],"tools":null,"package":{"name":"swanlab-mcp","registry":"pypi","observedAt":"2026-09-10T13:21:43.460Z","publishedAt":"2026-02-23T09:55:31.591989Z","latestVersion":"0.0.3"}},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"swanlab-mcp","url":"https://pypi.org/project/swanlab-mcp/","firstSeenAt":"2026-09-10T13:20:18.348Z","fetchedAt":"2026-09-10T13:20:18.348Z","normalizedAt":"2026-09-10T13:20:18.348Z"}]},"firstSeenAt":"2026-09-10T13:20:18.348Z","updatedAt":"2026-09-10T13:21:43.460Z"}