flywheel-gear-dev-mcp
Provides Claude with direct access to Flywheel gear and DICOM documentation, enabling developers to build and debug gears without context overload.
README
Flywheel Gear Development MCP Server
Give Claude expert knowledge of Flywheel gear development while you code.
The Problem
Developing gears for Flywheel means wrestling with documentation scattered across 10+ sources—many deprecated, conflicting, or redundant. You're constantly switching between browser tabs, searching for the right API reference, and wondering if what you're reading is still current.
The Solution
This MCP (Model Context Protocol) server gives Claude Code direct access to all of the Flywheel and DICOM documentation on command. Now when you ask Claude "What's the correct way to write a DICOM secondary?", it can reference the actual current specs—no hallucination or without loading all of the DICOM standard docs into memory and clogging up your context.
What's MCP? It's a protocol that lets Claude Code access external tools and data. This server runs locally on your machine (started and stopped by claude only in the directory that you are developing a Flywheel gear) and feeds fresh Flywheel docs to Claude on demand.
Who is this for? Flywheel developers using Claude Code CLI to build gears.
Quick Start
# 1. Clone and install the MCP server
git clone https://github.com/wzkariampuzha/flywheel-gear-dev-mcp.git
cd flywheel-gear-dev-mcp
uv sync
# 2. Navigate to your gear project
cd /path/to/your/gear-project
# 3. Add the MCP server
claude mcp add flywheel-gear-dev \
--scope local \
-- uv run --directory /full/path/to/flywheel-gear-dev-mcp flywheel-gear-mcp
# 4. Start Claude Code and ask:
# "Show me the gear manifest schema requirements"
Configuration
Two ways to configure the server in your gear project:
Option 1: CLI (Recommended)
From your gear project directory:
claude mcp add flywheel-gear-dev \
--scope local \
-- uv run --directory /absolute/path/to/flywheel-gear-dev-mcp flywheel-gear-mcp
Option 2: .mcp.json file
Create .mcp.json in your gear project:
{
"mcpServers": {
"flywheel-gear-dev": {
"command": "uv",
"args": ["run", "--directory", "/absolute/path/to/flywheel-gear-dev-mcp", "flywheel-gear-mcp"]
}
}
}
Usage
Starting the server
The server is automatically started by Claude Code when you launch a session.
Using the tools in Claude Code
Once configured, you can ask Claude to use the documentation tools:
"Can you get the fw-gear documentation?"
"Show me the DICOM standard data dictionary"
"What are the gear manifest schema requirements?"
Features
- Fresh documentation on startup: Fetches latest docs every time the server starts
- 10 curated documentation sources: Flywheel gear libraries, APIs, DICOM standard, and guides that you can add/remove/edit in config
- Deprecation filtering: Automatically removes deprecated content to keep LLMs focused on current APIs
Available tools
get_fw_gear_docs- fw-gear library documentationget_fw_classification_docs- fw-classification libraryget_fw_file_docs- fw-file libraryget_flywheel_api_docs- Flywheel platform Python APIget_dicom_standard- DICOM standard (filtered to data dictionary and transfer syntaxes)get_file_types_guide- Flywheel file types guideget_bids_guide- BIDS in Flywheel guideget_batch_gears_guide- Batch gear execution guideget_gear_specs- Gear specificationsget_manifest_schema- Gear manifest JSON schemalist_available_docs- List all cached documentation sources
Customizing documentation sources
Edit config.yaml to add, remove, or modify documentation sources:
documentation_sources:
- tool_name: get_my_custom_docs
display_name: "My Custom Documentation"
description: "Description here"
urls:
- https://example.com/docs
type: html # or xml, json, gitlab_repo
strip_deprecated: true
Supported types
html- HTML documentation (auto-converts to markdown)xml- XML documentation (for DICOM standard)json- JSON schemasgitlab_repo- GitLab repository markdown files
How It Works
- One-time setup: Install the MCP server code once, configure it in your gear projects
- Automatic startup: When you run
claudein your gear project, Claude Code automatically starts this MCP server in the background - On-demand docs: When Claude needs Flywheel documentation, it calls this server via MCP protocol
- Fresh data: The server fetches latest docs from URLs on first request, caches them for the session
- Automatic shutdown: Server stops when you exit Claude Code
The server runs locally—no data leaves your machine.
Troubleshooting
Server won't start
- Check Python version: Requires Python 3.13+
- Check dependencies: Run
uv syncagain - Check log files: Review
logs/flywheel-gear-mcp.logfor detailed error messages
Documentation not loading
- Check network: Ensure you can access Flywheel documentation URLs
- Check logs: Review
logs/flywheel-gear-mcp.logor run with verbose flag:flywheel-gear-mcp --verbose - Test URLs: Verify URLs in
config.yamlare accessible
Tools not appearing in Claude Code
- Restart Claude Code after configuration changes
- Check config.json syntax: Ensure valid JSON
- Check server status: Look for MCP server errors in Claude Code logs
Contributing
Contributions welcome! Please open an issue or PR.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。