Xraylib MCP server
io.github.tschoonj/xraylib-mcp-server·v0.1.6·3 starsMCP server providing X-ray interaction data via xraylib
3 stars18 downloads/wk
Reviews
Write oneNobody has reviewed Xraylib yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Xraylib tools (100)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
AtomicLevelWidthGet the natural width of an atomic level.
AtomicNumberToSymbolConvert an atomic number to its element symbol.
AtomicWeightGet the atomic weight of an element.
Atomic_FactorsCalculate atomic factors f0, f', and f'' for an element.
AugerRateGet the Auger rate for a given transition.
AugerYieldGet the Auger yield for a given shell.
CS_ComptCalculate the Compton scattering cross section of an element (cm2/g).
CS_Compt_CPCalculate the Compton scattering cross section of a compound (cm2/g).
CS_EnergyCalculate the mass energy-absorption cross section of an element (cm2/g).
CS_Energy_CPCalculate the mass energy-absorption cross section of a compound (cm2/g).
CS_FluorLineCalculate the fluorescence line cross section (cm2/g).
CS_FluorLine_KisselCalculate the fluorescence line cross section using Kissel photoionization (cm2/g).
CS_FluorLine_Kissel_CascadeCalculate the fluorescence line cross section with full cascade using Kissel (cm2/g).
CS_FluorLine_Kissel_Nonradiative_CascadeCalculate the fluorescence line cross section with nonradiative cascade using Kissel (cm2/g).
CS_FluorLine_Kissel_Radiative_CascadeCalculate the fluorescence line cross section with radiative cascade using Kissel (cm2/g).
CS_FluorLine_Kissel_no_CascadeCalculate the fluorescence line cross section without cascade using Kissel (cm2/g).
CS_FluorShellCalculate the fluorescence shell cross section (cm2/g).
CS_FluorShell_KisselCalculate the fluorescence shell cross section using Kissel photoionization (cm2/g).
CS_FluorShell_Kissel_CascadeCalculate the fluorescence shell cross section with full cascade using Kissel (cm2/g).
CS_FluorShell_Kissel_Nonradiative_CascadeCalculate the fluorescence shell cross section with nonradiative cascade using Kissel (cm2/g).
CS_FluorShell_Kissel_Radiative_CascadeCalculate the fluorescence shell cross section with radiative cascade using Kissel (cm2/g).
CS_FluorShell_Kissel_no_CascadeCalculate the fluorescence shell cross section without cascade using Kissel (cm2/g).
CS_KNCalculate the Klein-Nishina cross section (barn/electron).
CS_PhotoCalculate the photoionization cross section of an element (cm2/g).
CS_Photo_CPCalculate the photoionization cross section of a compound (cm2/g).
CS_Photo_PartialCalculate the partial photoionization cross section for a shell (cm2/g).
CS_Photo_TotalCalculate the total photoionization cross section using Kissel (cm2/g).
CS_Photo_Total_CPCalculate the total photoionization cross section of a compound using Kissel (cm2/g).
CS_RaylCalculate the Rayleigh scattering cross section of an element (cm2/g).
CS_Rayl_CPCalculate the Rayleigh scattering cross section of a compound (cm2/g).
CS_TotalCalculate the total cross section of an element (cm2/g).
CS_Total_CPCalculate the total cross section of a compound (cm2/g).
CS_Total_KisselCalculate the total cross section using Kissel photoionization (cm2/g).
CS_Total_Kissel_CPCalculate the total cross section of a compound using Kissel photoionization (cm2/g).
CSb_ComptCalculate the Compton scattering cross section of an element (barn/atom).
CSb_Compt_CPCalculate the Compton scattering cross section of a compound (barn/atom).
CSb_FluorLineCalculate the fluorescence line cross section (barn/atom).
CSb_FluorLine_KisselCalculate the fluorescence line cross section using Kissel photoionization (barn/atom).
CSb_FluorLine_Kissel_CascadeCalculate the fluorescence line cross section with full cascade using Kissel (barn/atom).
CSb_FluorLine_Kissel_Nonradiative_CascadeCalculate the fluorescence line cross section with nonradiative cascade using Kissel (barn/atom).
CSb_FluorLine_Kissel_Radiative_CascadeCalculate the fluorescence line cross section with radiative cascade using Kissel (barn/atom).
CSb_FluorLine_Kissel_no_CascadeCalculate the fluorescence line cross section without cascade using Kissel (barn/atom).
CSb_FluorShellCalculate the fluorescence shell cross section (barn/atom).
CSb_FluorShell_KisselCalculate the fluorescence shell cross section using Kissel photoionization (barn/atom).
CSb_FluorShell_Kissel_CascadeCalculate the fluorescence shell cross section with full cascade using Kissel (barn/atom).
CSb_FluorShell_Kissel_Nonradiative_CascadeCalculate the fluorescence shell cross section with nonradiative cascade using Kissel (barn/atom).
CSb_FluorShell_Kissel_Radiative_CascadeCalculate the fluorescence shell cross section with radiative cascade using Kissel (barn/atom).
CSb_FluorShell_Kissel_no_CascadeCalculate the fluorescence shell cross section without cascade using Kissel (barn/atom).
CSb_PhotoCalculate the photoionization cross section of an element (barn/atom).
CSb_Photo_CPCalculate the photoionization cross section of a compound (barn/atom).
CSb_Photo_PartialCalculate the partial photoionization cross section for a shell (barn/atom).
CSb_Photo_TotalCalculate the total photoionization cross section using Kissel (barn/atom).
CSb_Photo_Total_CPCalculate the total photoionization cross section of a compound using Kissel (barn/atom).
CSb_RaylCalculate the Rayleigh scattering cross section of an element (barn/atom).
CSb_Rayl_CPCalculate the Rayleigh scattering cross section of a compound (barn/atom).
CSb_TotalCalculate the total cross section of an element (barn/atom).
CSb_Total_CPCalculate the total cross section of a compound (barn/atom).
CSb_Total_KisselCalculate the total cross section using Kissel photoionization (barn/atom).
CSb_Total_Kissel_CPCalculate the total cross section of a compound using Kissel photoionization (barn/atom).
CompoundParserParse a chemical compound formula and return its composition.
ComptonEnergyCalculate the photon energy after Compton scattering.
ComptonProfileCalculate the Compton profile for an element.
ComptonProfile_PartialCalculate the partial Compton profile for a shell of an element.
CosKronTransProbGet the Coster-Kronig transition probability.
DCSP_ComptCalculate the polarized differential Compton scattering cross section (cm2/g/sr).
DCSP_Compt_CPCalculate the polarized differential Compton scattering cross section of a compound (cm2/g/sr).
DCSP_RaylCalculate the polarized differential Rayleigh scattering cross section (cm2/g/sr).
DCSP_Rayl_CPCalculate the polarized differential Rayleigh scattering cross section of a compound (cm2/g/sr).
DCSPb_ComptCalculate the polarized differential Compton scattering cross section (barn/atom/sr).
DCSPb_Compt_CPCalculate the polarized differential Compton scattering cross section of a compound (barn/atom/sr).
DCSPb_RaylCalculate the polarized differential Rayleigh scattering cross section (barn/atom/sr).
DCSPb_Rayl_CPCalculate the polarized differential Rayleigh scattering cross section of a compound (barn/atom/sr).
DCS_ComptCalculate the differential Compton scattering cross section (cm2/g/sr).
DCS_Compt_CPCalculate the differential Compton scattering cross section of a compound (cm2/g/sr).
DCS_RaylCalculate the differential Rayleigh scattering cross section (cm2/g/sr).
DCS_Rayl_CPCalculate the differential Rayleigh scattering cross section of a compound (cm2/g/sr).
DCSb_ComptCalculate the differential Compton scattering cross section (barn/atom/sr).
DCSb_Compt_CPCalculate the differential Compton scattering cross section of a compound (barn/atom/sr).
DCSb_RaylCalculate the differential Rayleigh scattering cross section (barn/atom/sr).
DCSb_Rayl_CPCalculate the differential Rayleigh scattering cross section of a compound (barn/atom/sr).
EdgeEnergyGet the absorption edge energy for a given shell.
ElectronConfigGet the electron configuration for a given shell of an element.
ElementDensityGet the density of a pure element.
FF_RaylCalculate the Rayleigh form factor.
FiCalculate the real part of the anomalous scattering factor (delta f').
FiiCalculate the imaginary part of the anomalous scattering factor (delta f'').
FluorYieldGet the fluorescence yield for a given shell.
GetCompoundDataNISTByIndexGet NIST compound data by index number.
GetCompoundDataNISTByNameGet NIST compound data by compound name.
GetCompoundDataNISTListGet the list of all available NIST compound names.
GetRadioNuclideDataByIndexGet radionuclide data by index number.
GetRadioNuclideDataByNameGet radionuclide data by name.
JumpFactorGet the jump factor for a given absorption edge.
LineEnergyGet the energy of an X-ray fluorescence line.
MomentTransfCalculate the momentum transfer for X-ray scattering.
RadRateGet the radiative rate for a given fluorescence line.
Refractive_Index_ImCalculate the imaginary part of the refractive index of a compound.
Refractive_Index_ReCalculate the real part of the refractive index of a compound.
SF_ComptCalculate the Compton incoherent scattering function.
SymbolToAtomicNumberConvert an element symbol to its atomic number.
Public scan report
scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan4 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 167 days ago8/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Xraylib compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 82/100
- higher than 63% of 48,255 servers
- Tools
- 100
- the typical server has 7
- Tools that change things
- 0%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 3
- more than 80% of 28,688 servers
- Downloads a week
- 18
- more than 5% of 12,191 servers with a package
What its tools let an agent do: 100 read
Install Xraylib in Claude Code, Cursor or VS Code
claude mcp add xraylib-mcp-server -- uvx xraylib-mcp-server
What the publisher says
From the Xraylib repository's README, as published. We do not edit it. Read it on GitHub
xraylib MCP Server
<!-- mcp-name: io.github.tschoonj/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
- Features
- Installation
- Usage
- As a standalone server
- With Claude Desktop
- With VS Code
- With Claude Code
- As a development server
- Using Docker
- Development
- License
- Contributing
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)
- AtomicFactors** -- 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)
- CSTotal, CSPhoto, CSRayl, CSCompt, CSEnergy, CSKN -- mass cross-sections (cm2/g)
- CSbTotal, CSbPhoto, CSbRayl, CSbCompt -- atomic cross-sections (barn/atom)
Fluorescence cross-sections
- CSFluorLine / CSbFluorLine -- line fluorescence cross-sections
- CSFluorShell / CSbFluorShell -- shell fluorescence cross-sections
- Kissel photoionization variants with full, radiative, nonradiative, and no cascade options
Differential cross-sections
- DCSRayl / DCSCompt and barn/atom variants -- unpolarized differential cross-sections
- DCSPRayl / DCSPCompt and barn/atom variants -- polarized differential cross-sections
Scattering factors
- FFRayl / SFCompt -- Rayleigh form factor and Compton scattering function
- MomentTransf / ComptonEnergy -- momentum transfer and Compton-scattered photon energy
- Fi / Fii -- anomalous scattering factors
- ComptonProfile / ComptonProfilePartial** -- 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
- RefractiveIndexRe / RefractiveIndexIm -- real and imaginary parts of the refractive index
NIST compounds
- GetCompoundDataNISTByName / GetCompoundDataNISTByIndex / GetCompoundDataNISTList -- access the built-in NIST compound database
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Xraylib: common questions
- Is Xraylib MCP server safe?
- Mostly: it is graded B (82/100). Read the Xraylib safety report
- How do I install Xraylib?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Xraylib need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Xraylib maintained?
- The last commit was 204 days ago (2026-04-14). The latest release is v0.1.6.
- How does Xraylib compare with other MCP servers?
- safety score 82/100 (higher than 63% of 48,255 servers); tools 100 (the typical server has 7); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.