xraylib MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@xraylib MCP Server Get the K-alpha line energy for iron."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
xraylib MCP Server
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
Using uv (recommended)
uv tool install xraylib-mcp-serverUsing pip
pip install xraylib-mcp-serverUsage
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 8000With 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-serverOr using the pre-built Docker image:
claude mcp add xraylib -- docker run -i --rm ghcr.io/tschoonj/xraylib-mcp-server:latestAs a development server
# Run in development mode with MCP inspector
uv run mcp dev src/xraylib_mcp_server/server.pyUsing 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.0Local 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 8000Development
Setup
# Clone the repository
git clone https://github.com/tschoonj/xraylib-mcp-server.git
cd xraylib-mcp-server
# Install development dependencies
uv sync --devRunning tests
# Run all tests
uv run pytest
# Run with coverage
uv run pytest --cov=src/xraylib_mcp_server --cov-report=htmlCode quality
# Lint
uv run ruff check .
# Format
uv run ruff format .
# Type check
uv run mypy src/ --ignore-missing-importsLicense
BSD 3-Clause License -- see LICENSE for details.
Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests for new functionality
Run the test suite
Submit a pull request
Available Tools
106 toolsAtomic_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
Scored across 106 tools
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 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.
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.
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
Related MCP Connectors
QuLab MCP remote server (Streamable HTTP) for computational science and lab tools.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Model Context Protocol server for Studex tools, notifications, and profile integrations
OQMD (Open Quantum Materials Database) MCP.
Related MCP Servers
- AlicenseBqualityDmaintenanceAn educational implementation of a Model Context Protocol server that demonstrates how to build a functional MCP server for integrating with various LLM clients like Claude Desktop.1162MIT
- FlicenseNot gradedqualityDmaintenanceA 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.-
- FlicenseNot gradedqualityDmaintenanceA 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-
- AlicenseNot gradedqualityAmaintenanceMCP server that wraps xraylarch for X-ray spectroscopy analysis, enabling loading, processing, analyzing, and plotting XAS/XAFS spectra through natural language.3BSD 3-Clause