Skip to main content
Glama
xraylib MCP Server

xraylib MCP Server

by tschoonj

xraylib MCP Server

CI Docker Image PyPI License: BSD-3-Clause

A Model Context Protocol (MCP) server that provides access to xraylib X-ray interaction data through a standardized interface. Query cross-sections, fluorescence lines, edge energies, and more from any MCP-compatible client.

Table of Contents

Related MCP server: FastMCP

Features

This server exposes 104 tools organized into the following categories:

Utility tools

  • AtomicNumberToSymbol / SymbolToAtomicNumber -- convert between atomic numbers and element symbols

  • AtomicWeight -- atomic weight (g/mol)

  • ElementDensity -- element density (g/cm3)

  • ElectronConfig -- electron configuration for a given shell

  • CompoundParser -- parse chemical formulas (e.g. SiO2, Ca5(PO4)3F)

  • Atomic_Factors -- atomic scattering factors f0, f', f''

Line, edge, and shell properties

  • LineEnergy / EdgeEnergy -- fluorescence line and absorption edge energies (keV)

  • FluorYield / JumpFactor / RadRate -- fluorescence yields, jump factors, radiative rates

  • AtomicLevelWidth -- natural widths of atomic levels (keV)

Cross-sections (element)

  • CS_Total, CS_Photo, CS_Rayl, CS_Compt, CS_Energy, CS_KN -- mass cross-sections (cm2/g)

  • CSb_Total, CSb_Photo, CSb_Rayl, CSb_Compt -- atomic cross-sections (barn/atom)

Fluorescence cross-sections

  • CS_FluorLine / CSb_FluorLine -- line fluorescence cross-sections

  • CS_FluorShell / CSb_FluorShell -- shell fluorescence cross-sections

  • Kissel photoionization variants with full, radiative, nonradiative, and no cascade options

Differential cross-sections

  • DCS_Rayl / DCS_Compt and barn/atom variants -- unpolarized differential cross-sections

  • DCSP_Rayl / DCSP_Compt and barn/atom variants -- polarized differential cross-sections

Scattering factors

  • FF_Rayl / SF_Compt -- Rayleigh form factor and Compton scattering function

  • MomentTransf / ComptonEnergy -- momentum transfer and Compton-scattered photon energy

  • Fi / Fii -- anomalous scattering factors

  • ComptonProfile / ComptonProfile_Partial -- Compton profiles (total and per-shell)

Auger and Coster-Kronig transitions

  • AugerRate / AugerYield -- Auger transition rates and yields

  • CosKronTransProb -- Coster-Kronig transition probabilities

Compound cross-sections

  • All CS/CSb, DCS/DCSb, and DCSP/DCSPb variants for compounds (by chemical formula)

  • Kissel photoionization variants for compounds

Refractive index

  • Refractive_Index_Re / Refractive_Index_Im -- real and imaginary parts of the refractive index

NIST compounds

  • GetCompoundDataNISTByName / GetCompoundDataNISTByIndex / GetCompoundDataNISTList -- access the built-in NIST compound database

Radionuclide data

  • GetRadioNuclideDataByName / GetRadioNuclideDataByIndex / GetRadioNuclideDataList -- access the built-in radionuclide database (X-ray lines, intensities, gamma energies)

Constant listings

  • ListLineConstants / ListShellConstants / ListTransitionConstants / ListAugerConstants / ListNISTCompoundConstants -- enumerate valid constant names

Installation

uv tool install xraylib-mcp-server

Using pip

pip install xraylib-mcp-server

Usage

As a standalone server

# Run with stdio transport (for Claude Desktop, etc.)
xraylib-mcp-server

# Run with HTTP transport
xraylib-mcp-server --transport http --port 8000

# Run with SSE transport
xraylib-mcp-server --transport sse --port 8000

With Claude Desktop

Add to your Claude Desktop configuration:

{
  "mcpServers": {
    "xraylib": {
      "command": "uvx",
      "args": ["xraylib-mcp-server"]
    }
  }
}

Or using the pre-built Docker image:

{
  "mcpServers": {
    "xraylib": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "ghcr.io/tschoonj/xraylib-mcp-server:latest"]
    }
  }
}

With VS Code

Add to your VS Code settings (.vscode/settings.json or user settings):

{
  "mcp.servers": {
    "xraylib": {
      "command": "uvx",
      "args": ["xraylib-mcp-server"]
    }
  }
}

Or using the pre-built Docker image:

{
  "mcp.servers": {
    "xraylib": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "ghcr.io/tschoonj/xraylib-mcp-server:latest"]
    }
  }
}

With Claude Code

Add the server using the CLI:

claude mcp add xraylib -- uvx xraylib-mcp-server

Or using the pre-built Docker image:

claude mcp add xraylib -- docker run -i --rm ghcr.io/tschoonj/xraylib-mcp-server:latest

As a development server

# Run in development mode with MCP inspector
uv run mcp dev src/xraylib_mcp_server/server.py

Using Docker

Pre-built images from GitHub Container Registry

# Pull the latest image
docker pull ghcr.io/tschoonj/xraylib-mcp-server:latest

# Run with stdio transport
docker run -i --rm ghcr.io/tschoonj/xraylib-mcp-server:latest

# Run with HTTP transport on port 8000
docker run --rm -p 8000:8000 ghcr.io/tschoonj/xraylib-mcp-server:latest xraylib-mcp-server --transport http --port 8000

# Use a specific version
docker pull ghcr.io/tschoonj/xraylib-mcp-server:0.1.0
docker run -i --rm ghcr.io/tschoonj/xraylib-mcp-server:0.1.0

Local development with Docker

# Build the Docker image locally
docker build -t xraylib-mcp-server .

# Run with stdio transport
docker run -i --rm xraylib-mcp-server

# Run with HTTP transport on port 8000
docker run --rm -p 8000:8000 xraylib-mcp-server xraylib-mcp-server --transport http --port 8000

Development

Setup

# Clone the repository
git clone https://github.com/tschoonj/xraylib-mcp-server.git
cd xraylib-mcp-server

# Install development dependencies
uv sync --dev

Running tests

# Run all tests
uv run pytest

# Run with coverage
uv run pytest --cov=src/xraylib_mcp_server --cov-report=html

Code quality

# Lint
uv run ruff check .

# Format
uv run ruff format .

# Type check
uv run mypy src/ --ignore-missing-imports

License

BSD 3-Clause License -- see LICENSE for details.

Contributing

  1. Fork the repository

  2. Create a feature branch

  3. Make your changes

  4. Add tests for new functionality

  5. Run the test suite

  6. Submit a pull request

Available Tools

106 tools
Atomic_FactorsA

Calculate atomic factors f0, f', and f'' for an element.

Args: Z: Atomic number (1-120) E: Photon energy in keV q: Momentum transfer in 1/Angstrom debye_factor: Debye temperature factor

Inputs: E (required), Z (required), q (required), debye_factor (required). Returns: result

AtomicLevelWidthB

Get the natural width of an atomic level.

Args: Z: Atomic number (1-120) shell: Shell name, e.g. "K_SHELL", "L1_SHELL"

Inputs: Z (required), shell (required). Returns: result

AtomicNumberToSymbolA

Convert an atomic number to its element symbol.

Args: Z: Atomic number (1-120)

Inputs: Z (required). Returns: result

AtomicWeightA

Get the atomic weight of an element.

Args: Z: Atomic number (1-120)

Inputs: Z (required). Returns: result

AugerRateC

Get the Auger rate for a given transition.

Args: Z: Atomic number (1-120) auger_trans: Auger transition name, e.g. "K_L1L1_AUGER", "L2_M5M5_AUGER"

Inputs: Z (required), auger_trans (required). Returns: result

AugerYieldB

Get the Auger yield for a given shell.

Args: Z: Atomic number (1-120) shell: Shell name, e.g. "K_SHELL", "L1_SHELL"

Inputs: Z (required), shell (required). Returns: result

CompoundParserB

Parse a chemical compound formula and return its composition.

Args: compound: Chemical formula, e.g. "SiO2", "H2O", "Ca5(PO4)3F"

Inputs: compound (required). Returns: result

ComptonEnergyA

Calculate the photon energy after Compton scattering.

Args: E0: Incident photon energy in keV theta: Scattering angle in radians

Inputs: E0 (required), theta (required). Returns: result

ComptonProfileB

Calculate the Compton profile for an element.

Args: Z: Atomic number (1-120) pz: Projection of the electron momentum in atomic units

Inputs: Z (required), pz (required). Returns: result

ComptonProfile_PartialA

Calculate the partial Compton profile for a shell of an element.

Args: Z: Atomic number (1-120) shell: Shell name, e.g. "K_SHELL", "L1_SHELL" pz: Projection of the electron momentum in atomic units

Inputs: Z (required), pz (required), shell (required). Returns: result

CosKronTransProbA

Get the Coster-Kronig transition probability.

Args: Z: Atomic number (1-120) trans: Transition name, e.g. "FL13_TRANS", "FM15_TRANS"

Inputs: Z (required), trans (required). Returns: result

CSb_ComptB

Calculate the Compton scattering cross section of an element (barn/atom).

Args: Z: Atomic number (1-120) E: Photon energy in keV

Inputs: E (required), Z (required). Returns: result

CSb_Compt_CPC

Calculate the Compton scattering cross section of a compound (barn/atom).

Args: compound: Chemical formula, e.g. "SiO2", "H2O" E: Photon energy in keV

Inputs: E (required), compound (required). Returns: result

CSb_FluorLineB

Calculate the fluorescence line cross section (barn/atom).

Args: Z: Atomic number (1-120) line: Line name, e.g. "KL3_LINE", "KA_LINE", "LA1_LINE" E: Photon energy in keV

Inputs: E (required), Z (required), line (required). Returns: result

CSb_FluorLine_KisselC

Calculate the fluorescence line cross section using Kissel photoionization (barn/atom).

Args: Z: Atomic number (1-120) line: Line name, e.g. "KL3_LINE", "KA_LINE" E: Photon energy in keV

Inputs: E (required), Z (required), line (required). Returns: result

CSb_FluorLine_Kissel_CascadeB

Calculate the fluorescence line cross section with full cascade using Kissel (barn/atom).

Args: Z: Atomic number (1-120) line: Line name, e.g. "KL3_LINE", "KA_LINE" E: Photon energy in keV

Inputs: E (required), Z (required), line (required). Returns: result

CSb_FluorLine_Kissel_no_CascadeA

Calculate the fluorescence line cross section without cascade using Kissel (barn/atom).

Args: Z: Atomic number (1-120) line: Line name, e.g. "KL3_LINE", "KA_LINE" E: Photon energy in keV

Inputs: E (required), Z (required), line (required). Returns: result

CSb_FluorLine_Kissel_Nonradiative_CascadeA

Calculate the fluorescence line cross section with nonradiative cascade using Kissel (barn/atom).

Args: Z: Atomic number (1-120) line: Line name, e.g. "KL3_LINE", "KA_LINE" E: Photon energy in keV

Inputs: E (required), Z (required), line (required). Returns: result

CSb_FluorLine_Kissel_Radiative_CascadeA

Calculate the fluorescence line cross section with radiative cascade using Kissel (barn/atom).

Args: Z: Atomic number (1-120) line: Line name, e.g. "KL3_LINE", "KA_LINE" E: Photon energy in keV

Inputs: E (required), Z (required), line (required). Returns: result

CSb_FluorShellB

Calculate the fluorescence shell cross section (barn/atom).

Args: Z: Atomic number (1-120) shell: Shell name, e.g. "K_SHELL", "L1_SHELL" E: Photon energy in keV

Inputs: E (required), Z (required), shell (required). Returns: result

CSb_FluorShell_KisselB

Calculate the fluorescence shell cross section using Kissel photoionization (barn/atom).

Args: Z: Atomic number (1-120) shell: Shell name, e.g. "K_SHELL", "L1_SHELL" E: Photon energy in keV

Inputs: E (required), Z (required), shell (required). Returns: result

CSb_FluorShell_Kissel_CascadeC

Calculate the fluorescence shell cross section with full cascade using Kissel (barn/atom).

Args: Z: Atomic number (1-120) shell: Shell name, e.g. "K_SHELL", "L1_SHELL" E: Photon energy in keV

Inputs: E (required), Z (required), shell (required). Returns: result

CSb_FluorShell_Kissel_no_CascadeA

Calculate the fluorescence shell cross section without cascade using Kissel (barn/atom).

Args: Z: Atomic number (1-120) shell: Shell name, e.g. "K_SHELL", "L1_SHELL" E: Photon energy in keV

Inputs: E (required), Z (required), shell (required). Returns: result

CSb_FluorShell_Kissel_Nonradiative_CascadeA

Calculate the fluorescence shell cross section with nonradiative cascade using Kissel (barn/atom).

Args: Z: Atomic number (1-120) shell: Shell name, e.g. "K_SHELL", "L1_SHELL" E: Photon energy in keV

Inputs: E (required), Z (required), shell (required). Returns: result

CSb_FluorShell_Kissel_Radiative_CascadeA

Calculate the fluorescence shell cross section with radiative cascade using Kissel (barn/atom).

Args: Z: Atomic number (1-120) shell: Shell name, e.g. "K_SHELL", "L1_SHELL" E: Photon energy in keV

Inputs: E (required), Z (required), shell (required). Returns: result

CSb_PhotoB

Calculate the photoionization cross section of an element (barn/atom).

Args: Z: Atomic number (1-120) E: Photon energy in keV

Inputs: E (required), Z (required). Returns: result

CSb_Photo_CPB

Calculate the photoionization cross section of a compound (barn/atom).

Args: compound: Chemical formula, e.g. "SiO2", "H2O" E: Photon energy in keV

Inputs: E (required), compound (required). Returns: result

CSb_Photo_PartialA

Calculate the partial photoionization cross section for a shell (barn/atom).

Args: Z: Atomic number (1-120) shell: Shell name, e.g. "K_SHELL", "L1_SHELL" E: Photon energy in keV

Inputs: E (required), Z (required), shell (required). Returns: result

CSb_Photo_TotalA

Calculate the total photoionization cross section using Kissel (barn/atom).

Args: Z: Atomic number (1-120) E: Photon energy in keV

Inputs: E (required), Z (required). Returns: result

CSb_Photo_Total_CPB

Calculate the total photoionization cross section of a compound using Kissel (barn/atom).

Args: compound: Chemical formula, e.g. "SiO2", "H2O" E: Photon energy in keV

Inputs: E (required), compound (required). Returns: result

CSb_RaylB

Calculate the Rayleigh scattering cross section of an element (barn/atom).

Args: Z: Atomic number (1-120) E: Photon energy in keV

Inputs: E (required), Z (required). Returns: result

CSb_Rayl_CPB

Calculate the Rayleigh scattering cross section of a compound (barn/atom).

Args: compound: Chemical formula, e.g. "SiO2", "H2O" E: Photon energy in keV

Inputs: E (required), compound (required). Returns: result

CSb_TotalB

Calculate the total cross section of an element (barn/atom).

Args: Z: Atomic number (1-120) E: Photon energy in keV

Inputs: E (required), Z (required). Returns: result

CSb_Total_CPB

Calculate the total cross section of a compound (barn/atom).

Args: compound: Chemical formula, e.g. "SiO2", "H2O" E: Photon energy in keV

Inputs: E (required), compound (required). Returns: result

CSb_Total_KisselA

Calculate the total cross section using Kissel photoionization (barn/atom).

Args: Z: Atomic number (1-120) E: Photon energy in keV

Inputs: E (required), Z (required). Returns: result

CSb_Total_Kissel_CPA

Calculate the total cross section of a compound using Kissel photoionization (barn/atom).

Args: compound: Chemical formula, e.g. "SiO2", "H2O" E: Photon energy in keV

Inputs: E (required), compound (required). Returns: result

CS_ComptB

Calculate the Compton scattering cross section of an element (cm2/g).

Args: Z: Atomic number (1-120) E: Photon energy in keV

Inputs: E (required), Z (required). Returns: result

CS_Compt_CPA

Calculate the Compton scattering cross section of a compound (cm2/g).

Args: compound: Chemical formula, e.g. "SiO2", "H2O" E: Photon energy in keV

Inputs: E (required), compound (required). Returns: result

CS_EnergyA

Calculate the mass energy-absorption cross section of an element (cm2/g).

Args: Z: Atomic number (1-120) E: Photon energy in keV

Inputs: E (required), Z (required). Returns: result

CS_Energy_CPB

Calculate the mass energy-absorption cross section of a compound (cm2/g).

Args: compound: Chemical formula, e.g. "SiO2", "H2O" E: Photon energy in keV

Inputs: E (required), compound (required). Returns: result

CS_FluorLineA

Calculate the fluorescence line cross section (cm2/g).

Args: Z: Atomic number (1-120) line: Line name, e.g. "KL3_LINE", "KA_LINE", "LA1_LINE" E: Photon energy in keV

Inputs: E (required), Z (required), line (required). Returns: result

CS_FluorLine_KisselA

Calculate the fluorescence line cross section using Kissel photoionization (cm2/g).

Args: Z: Atomic number (1-120) line: Line name, e.g. "KL3_LINE", "KA_LINE" E: Photon energy in keV

Inputs: E (required), Z (required), line (required). Returns: result

CS_FluorLine_Kissel_CascadeB

Calculate the fluorescence line cross section with full cascade using Kissel (cm2/g).

Args: Z: Atomic number (1-120) line: Line name, e.g. "KL3_LINE", "KA_LINE" E: Photon energy in keV

Inputs: E (required), Z (required), line (required). Returns: result

CS_FluorLine_Kissel_no_CascadeB

Calculate the fluorescence line cross section without cascade using Kissel (cm2/g).

Args: Z: Atomic number (1-120) line: Line name, e.g. "KL3_LINE", "KA_LINE" E: Photon energy in keV

Inputs: E (required), Z (required), line (required). Returns: result

CS_FluorLine_Kissel_Nonradiative_CascadeB

Calculate the fluorescence line cross section with nonradiative cascade using Kissel (cm2/g).

Args: Z: Atomic number (1-120) line: Line name, e.g. "KL3_LINE", "KA_LINE" E: Photon energy in keV

Inputs: E (required), Z (required), line (required). Returns: result

CS_FluorLine_Kissel_Radiative_CascadeB

Calculate the fluorescence line cross section with radiative cascade using Kissel (cm2/g).

Args: Z: Atomic number (1-120) line: Line name, e.g. "KL3_LINE", "KA_LINE" E: Photon energy in keV

Inputs: E (required), Z (required), line (required). Returns: result

CS_FluorShellC

Calculate the fluorescence shell cross section (cm2/g).

Args: Z: Atomic number (1-120) shell: Shell name, e.g. "K_SHELL", "L1_SHELL" E: Photon energy in keV

Inputs: E (required), Z (required), shell (required). Returns: result

CS_FluorShell_KisselA

Calculate the fluorescence shell cross section using Kissel photoionization (cm2/g).

Args: Z: Atomic number (1-120) shell: Shell name, e.g. "K_SHELL", "L1_SHELL" E: Photon energy in keV

Inputs: E (required), Z (required), shell (required). Returns: result

CS_FluorShell_Kissel_CascadeA

Calculate the fluorescence shell cross section with full cascade using Kissel (cm2/g).

Args: Z: Atomic number (1-120) shell: Shell name, e.g. "K_SHELL", "L1_SHELL" E: Photon energy in keV

Inputs: E (required), Z (required), shell (required). Returns: result

CS_FluorShell_Kissel_no_CascadeA

Calculate the fluorescence shell cross section without cascade using Kissel (cm2/g).

Args: Z: Atomic number (1-120) shell: Shell name, e.g. "K_SHELL", "L1_SHELL" E: Photon energy in keV

Inputs: E (required), Z (required), shell (required). Returns: result

CS_FluorShell_Kissel_Nonradiative_CascadeA

Calculate the fluorescence shell cross section with nonradiative cascade using Kissel (cm2/g).

Args: Z: Atomic number (1-120) shell: Shell name, e.g. "K_SHELL", "L1_SHELL" E: Photon energy in keV

Inputs: E (required), Z (required), shell (required). Returns: result

CS_FluorShell_Kissel_Radiative_CascadeB

Calculate the fluorescence shell cross section with radiative cascade using Kissel (cm2/g).

Args: Z: Atomic number (1-120) shell: Shell name, e.g. "K_SHELL", "L1_SHELL" E: Photon energy in keV

Inputs: E (required), Z (required), shell (required). Returns: result

CS_KNB

Calculate the Klein-Nishina cross section (barn/electron).

Args: E: Photon energy in keV

Inputs: E (required). Returns: result

CS_PhotoA

Calculate the photoionization cross section of an element (cm2/g).

Args: Z: Atomic number (1-120) E: Photon energy in keV

Inputs: E (required), Z (required). Returns: result

CS_Photo_CPB

Calculate the photoionization cross section of a compound (cm2/g).

Args: compound: Chemical formula, e.g. "SiO2", "H2O" E: Photon energy in keV

Inputs: E (required), compound (required). Returns: result

CS_Photo_PartialA

Calculate the partial photoionization cross section for a shell (cm2/g).

Args: Z: Atomic number (1-120) shell: Shell name, e.g. "K_SHELL", "L1_SHELL" E: Photon energy in keV

Inputs: E (required), Z (required), shell (required). Returns: result

CS_Photo_TotalA

Calculate the total photoionization cross section using Kissel (cm2/g).

Args: Z: Atomic number (1-120) E: Photon energy in keV

Inputs: E (required), Z (required). Returns: result

CS_Photo_Total_CPC

Calculate the total photoionization cross section of a compound using Kissel (cm2/g).

Args: compound: Chemical formula, e.g. "SiO2", "H2O" E: Photon energy in keV

Inputs: E (required), compound (required). Returns: result

CS_RaylB

Calculate the Rayleigh scattering cross section of an element (cm2/g).

Args: Z: Atomic number (1-120) E: Photon energy in keV

Inputs: E (required), Z (required). Returns: result

CS_Rayl_CPA

Calculate the Rayleigh scattering cross section of a compound (cm2/g).

Args: compound: Chemical formula, e.g. "SiO2", "H2O" E: Photon energy in keV

Inputs: E (required), compound (required). Returns: result

CS_TotalA

Calculate the total cross section of an element (cm2/g).

Args: Z: Atomic number (1-120) E: Photon energy in keV

Inputs: E (required), Z (required). Returns: result

CS_Total_CPA

Calculate the total cross section of a compound (cm2/g).

Args: compound: Chemical formula, e.g. "SiO2", "H2O", "CaCO3" E: Photon energy in keV

Inputs: E (required), compound (required). Returns: result

CS_Total_KisselB

Calculate the total cross section using Kissel photoionization (cm2/g).

Args: Z: Atomic number (1-120) E: Photon energy in keV

Inputs: E (required), Z (required). Returns: result

CS_Total_Kissel_CPA

Calculate the total cross section of a compound using Kissel photoionization (cm2/g).

Args: compound: Chemical formula, e.g. "SiO2", "H2O" E: Photon energy in keV

Inputs: E (required), compound (required). Returns: result

DCSb_ComptB

Calculate the differential Compton scattering cross section (barn/atom/sr).

Args: Z: Atomic number (1-120) E: Photon energy in keV theta: Scattering polar angle in radians

Inputs: E (required), Z (required), theta (required). Returns: result

DCSb_Compt_CPB

Calculate the differential Compton scattering cross section of a compound (barn/atom/sr).

Args: compound: Chemical formula, e.g. "SiO2", "H2O" E: Photon energy in keV theta: Scattering polar angle in radians

Inputs: E (required), theta (required), compound (required). Returns: result

DCSb_RaylA

Calculate the differential Rayleigh scattering cross section (barn/atom/sr).

Args: Z: Atomic number (1-120) E: Photon energy in keV theta: Scattering polar angle in radians

Inputs: E (required), Z (required), theta (required). Returns: result

DCSb_Rayl_CPB

Calculate the differential Rayleigh scattering cross section of a compound (barn/atom/sr).

Args: compound: Chemical formula, e.g. "SiO2", "H2O" E: Photon energy in keV theta: Scattering polar angle in radians

Inputs: E (required), theta (required), compound (required). Returns: result

DCS_ComptA

Calculate the differential Compton scattering cross section (cm2/g/sr).

Args: Z: Atomic number (1-120) E: Photon energy in keV theta: Scattering polar angle in radians

Inputs: E (required), Z (required), theta (required). Returns: result

DCS_Compt_CPB

Calculate the differential Compton scattering cross section of a compound (cm2/g/sr).

Args: compound: Chemical formula, e.g. "SiO2", "H2O" E: Photon energy in keV theta: Scattering polar angle in radians

Inputs: E (required), theta (required), compound (required). Returns: result

DCSPb_ComptB

Calculate the polarized differential Compton scattering cross section (barn/atom/sr).

Args: Z: Atomic number (1-120) E: Photon energy in keV theta: Scattering polar angle in radians phi: Scattering azimuthal angle in radians

Inputs: E (required), Z (required), phi (required), theta (required). Returns: result

DCSPb_Compt_CPB

Calculate the polarized differential Compton scattering cross section of a compound (barn/atom/sr).

Args: compound: Chemical formula, e.g. "SiO2", "H2O" E: Photon energy in keV theta: Scattering polar angle in radians phi: Scattering azimuthal angle in radians

Inputs: E (required), phi (required), theta (required), compound (required). Returns: result

DCSPb_RaylB

Calculate the polarized differential Rayleigh scattering cross section (barn/atom/sr).

Args: Z: Atomic number (1-120) E: Photon energy in keV theta: Scattering polar angle in radians phi: Scattering azimuthal angle in radians

Inputs: E (required), Z (required), phi (required), theta (required). Returns: result

DCSPb_Rayl_CPB

Calculate the polarized differential Rayleigh scattering cross section of a compound (barn/atom/sr).

Args: compound: Chemical formula, e.g. "SiO2", "H2O" E: Photon energy in keV theta: Scattering polar angle in radians phi: Scattering azimuthal angle in radians

Inputs: E (required), phi (required), theta (required), compound (required). Returns: result

DCSP_ComptA

Calculate the polarized differential Compton scattering cross section (cm2/g/sr).

Args: Z: Atomic number (1-120) E: Photon energy in keV theta: Scattering polar angle in radians phi: Scattering azimuthal angle in radians

Inputs: E (required), Z (required), phi (required), theta (required). Returns: result

DCSP_Compt_CPB

Calculate the polarized differential Compton scattering cross section of a compound (cm2/g/sr).

Args: compound: Chemical formula, e.g. "SiO2", "H2O" E: Photon energy in keV theta: Scattering polar angle in radians phi: Scattering azimuthal angle in radians

Inputs: E (required), phi (required), theta (required), compound (required). Returns: result

DCSP_RaylB

Calculate the polarized differential Rayleigh scattering cross section (cm2/g/sr).

Args: Z: Atomic number (1-120) E: Photon energy in keV theta: Scattering polar angle in radians phi: Scattering azimuthal angle in radians

Inputs: E (required), Z (required), phi (required), theta (required). Returns: result

DCSP_Rayl_CPA

Calculate the polarized differential Rayleigh scattering cross section of a compound (cm2/g/sr).

Args: compound: Chemical formula, e.g. "SiO2", "H2O" E: Photon energy in keV theta: Scattering polar angle in radians phi: Scattering azimuthal angle in radians

Inputs: E (required), phi (required), theta (required), compound (required). Returns: result

DCS_RaylB

Calculate the differential Rayleigh scattering cross section (cm2/g/sr).

Args: Z: Atomic number (1-120) E: Photon energy in keV theta: Scattering polar angle in radians

Inputs: E (required), Z (required), theta (required). Returns: result

DCS_Rayl_CPB

Calculate the differential Rayleigh scattering cross section of a compound (cm2/g/sr).

Args: compound: Chemical formula, e.g. "SiO2", "H2O" E: Photon energy in keV theta: Scattering polar angle in radians

Inputs: E (required), theta (required), compound (required). Returns: result

EdgeEnergyB

Get the absorption edge energy for a given shell.

Args: Z: Atomic number (1-120) shell: Shell name, e.g. "K_SHELL", "L1_SHELL", "M5_SHELL"

Inputs: Z (required), shell (required). Returns: result

ElectronConfigA

Get the electron configuration for a given shell of an element.

Args: Z: Atomic number (1-120) shell: Shell name, e.g. "K_SHELL", "L1_SHELL", "M5_SHELL"

Inputs: Z (required), shell (required). Returns: result

ElementDensityA

Get the density of a pure element.

Args: Z: Atomic number (1-120)

Inputs: Z (required). Returns: result

FF_RaylB

Calculate the Rayleigh form factor.

Args: Z: Atomic number (1-120) q: Momentum transfer in 1/Angstrom

Inputs: Z (required), q (required). Returns: result

FiB

Calculate the real part of the anomalous scattering factor (delta f').

Args: Z: Atomic number (1-120) E: Photon energy in keV

Inputs: E (required), Z (required). Returns: result

FiiA

Calculate the imaginary part of the anomalous scattering factor (delta f'').

Args: Z: Atomic number (1-120) E: Photon energy in keV

Inputs: E (required), Z (required). Returns: result

FluorYieldC

Get the fluorescence yield for a given shell.

Args: Z: Atomic number (1-120) shell: Shell name, e.g. "K_SHELL", "L1_SHELL"

Inputs: Z (required), shell (required). Returns: result

GetCompoundDataNISTByIndexB

Get NIST compound data by index number.

Args: index: NIST compound index (0-based)

Inputs: index (required). Returns: result

GetCompoundDataNISTByNameA

Get NIST compound data by compound name.

Args: name: NIST compound name, e.g. "Water, Liquid", "Air, Dry (near sea level)"

Inputs: name (required). Returns: result

GetCompoundDataNISTListA

Get the list of all available NIST compound names.

Inputs: no named parameters. Returns: result

GetRadioNuclideDataByIndexA

Get radionuclide data by index number.

Args: index: Radionuclide index (0-based)

Inputs: index (required). Returns: result

GetRadioNuclideDataByNameC

Get radionuclide data by name.

Args: name: Radionuclide name, e.g. "55Fe", "241Am", "109Cd"

Inputs: name (required). Returns: result

GetRadioNuclideDataListA

Get the list of all available radionuclide names.

Inputs: no named parameters. Returns: result

JumpFactorB

Get the jump factor for a given absorption edge.

Args: Z: Atomic number (1-120) shell: Shell name, e.g. "K_SHELL", "L1_SHELL"

Inputs: Z (required), shell (required). Returns: result

LineEnergyA

Get the energy of an X-ray fluorescence line.

Args: Z: Atomic number (1-120) line: Line name, e.g. "KL3_LINE", "KA_LINE", "LA1_LINE"

Inputs: Z (required), line (required). Returns: result

ListAugerConstantsA

List all available Auger transition constant names.

Inputs: no named parameters. Returns: result

ListLineConstantsA

List all available X-ray fluorescence line constant names.

Inputs: no named parameters. Returns: result

ListNISTCompoundConstantsB

List all available NIST compound constant names.

Inputs: no named parameters. Returns: result

ListShellConstantsA

List all available shell constant names.

Inputs: no named parameters. Returns: result

ListTransitionConstantsA

List all available Coster-Kronig transition constant names.

Inputs: no named parameters. Returns: result

MomentTransfA

Calculate the momentum transfer for X-ray scattering.

Args: E: Photon energy in keV theta: Scattering angle in radians

Inputs: E (required), theta (required). Returns: result

RadRateA

Get the radiative rate for a given fluorescence line.

Args: Z: Atomic number (1-120) line: Line name, e.g. "KL3_LINE", "KA_LINE"

Inputs: Z (required), line (required). Returns: result

Refractive_Index_ImA

Calculate the imaginary part of the refractive index of a compound.

Args: compound: Chemical formula, e.g. "SiO2", "H2O" E: Photon energy in keV density: Density in g/cm3

Inputs: E (required), density (required), compound (required). Returns: result

Refractive_Index_ReB

Calculate the real part of the refractive index of a compound.

Args: compound: Chemical formula, e.g. "SiO2", "H2O" E: Photon energy in keV density: Density in g/cm3

Inputs: E (required), density (required), compound (required). Returns: result

SF_ComptA

Calculate the Compton incoherent scattering function.

Args: Z: Atomic number (1-120) q: Momentum transfer in 1/Angstrom

Inputs: Z (required), q (required). Returns: result

SymbolToAtomicNumberA

Convert an element symbol to its atomic number.

Args: symbol: Element symbol, e.g. "Fe", "Cu", "Au"

Inputs: symbol (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 106 tools

    Disambiguation3/5

    Many tools are systematically similar (e.g., CS_Total, CS_Total_Kissel, CS_Total_CP, CSb_Total, etc.) with only slight differences in units or method. Descriptions help distinguish them, but the sheer volume of near-identical tools can cause misselection.

    Naming Consistency3/5

    Naming conventions are mixed: some use CamelCase (AtomicNumberToSymbol), others use underscores (Atomic_Factors, CS_Total), and some are short (Fi, Fii). While prefixes and suffixes often indicate variations, the overall pattern is inconsistent.

    Tool Count2/5

    106 tools is excessive. Although the domain is complex, many tools are systematic variants (e.g., unit or method suffixes) that could be combined or reduced, making the server feel bloated.

    Completeness5/5

    The tool set covers a very wide range of X-ray atomic physics: elemental properties, cross sections (in two unit systems, with and without Kissel), scattering (differential, polarized), compound calculations, radionuclide data, and NIST compound constants. It is highly comprehensive.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that bridges MCP clients with local LLM services, enabling seamless integration with MCP-compatible applications through standard tools like chat completion, model listing, and health checks.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol (MCP) server that provides programmatic access to Catalysis Hub's GraphQL API, enabling querying of catalytic reactions, material systems, publications, and surface reaction data.
      2
      -