Connect to FHIR servers and query medical data such as patient history in natural language.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add fhir-server-momentum --env BRAVE_API_KEY='<BRAVE_API_KEY>' --env GITHUB_TOKEN='<GITHUB_TOKEN>' -- docker run -i --rm --init --mount 'type=bind,source=<your-project-path>/app,target=/root_project/app' --mount 'type=bind,source=<your-project-path>/config/.env,target=/root_project/config/.env' mcp-server:latest~/.codex/config.toml
[mcp_servers.fhir-server-momentum]
command = "docker"
args = ["run", "-i", "--rm", "--init", "--mount", "type=bind,source=<your-project-path>/app,target=/root_project/app", "--mount", "type=bind,source=<your-project-path>/config/.env,target=/root_project/config/.env", "mcp-server:latest"]
env = { BRAVE_API_KEY = "<BRAVE_API_KEY>", GITHUB_TOKEN = "<GITHUB_TOKEN>" }
# codex mcp add fhir-server-momentum --env BRAVE_API_KEY='<BRAVE_API_KEY>' --env GITHUB_TOKEN='<GITHUB_TOKEN>' -- docker run -i --rm --init --mount 'type=bind,source=<your-project-path>/app,target=/root_project/app' --mount 'type=bind,source=<your-project-path>/config/.env,target=/root_project/config/.env' mcp-server:latest~/.cursor/mcp.json
{
"mcpServers": {
"fhir-server-momentum": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--init",
"--mount",
"type=bind,source=<your-project-path>/app,target=/root_project/app",
"--mount",
"type=bind,source=<your-project-path>/config/.env,target=/root_project/config/.env",
"mcp-server:latest"
],
"env": {
"BRAVE_API_KEY": "<BRAVE_API_KEY>",
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"fhir-server-momentum": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--init",
"--mount",
"type=bind,source=<your-project-path>/app,target=/root_project/app",
"--mount",
"type=bind,source=<your-project-path>/config/.env,target=/root_project/config/.env",
"mcp-server:latest"
],
"env": {
"BRAVE_API_KEY": "<BRAVE_API_KEY>",
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"fhir-server-momentum": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--init",
"--mount",
"type=bind,source=<your-project-path>/app,target=/root_project/app",
"--mount",
"type=bind,source=<your-project-path>/config/.env,target=/root_project/config/.env",
"mcp-server:latest"
],
"env": {
"BRAVE_API_KEY": "<BRAVE_API_KEY>",
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"fhir-server-momentum": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--init",
"--mount",
"type=bind,source=<your-project-path>/app,target=/root_project/app",
"--mount",
"type=bind,source=<your-project-path>/config/.env,target=/root_project/config/.env",
"mcp-server:latest"
],
"env": {
"BRAVE_API_KEY": "<BRAVE_API_KEY>",
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"fhir-server-momentum": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--init",
"--mount",
"type=bind,source=<your-project-path>/app,target=/root_project/app",
"--mount",
"type=bind,source=<your-project-path>/config/.env,target=/root_project/config/.env",
"mcp-server:latest"
],
"env": {
"BRAVE_API_KEY": "<BRAVE_API_KEY>",
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}需要的环境变量
BRAVE_API_KEYGITHUB_TOKEN
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。