MCP.Market

Xraylib MCP server

by tschoonj·io.github.tschoonj/xraylib-mcp-server·v0.1.6·3 stars

MCP server providing X-ray interaction data via xraylib

B82/100grade B
What users say
No reviews yet
Be the first
Safety scan
B82/100

full report

Adoption
New

3 stars18 downloads/wk

Reviews

Write one

Nobody 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 posts

Read from the package source without running it. The installed server may list more.

  • AtomicLevelWidth

    Get the natural width of an atomic level.

  • AtomicNumberToSymbol

    Convert an atomic number to its element symbol.

  • AtomicWeight

    Get the atomic weight of an element.

  • Atomic_Factors

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

  • AugerRate

    Get the Auger rate for a given transition.

  • AugerYield

    Get the Auger yield for a given shell.

  • CS_Compt

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

  • CS_Compt_CP

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

  • CS_Energy

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

  • CS_Energy_CP

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

  • CS_FluorLine

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

  • CS_FluorLine_Kissel

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

  • CS_FluorLine_Kissel_Cascade

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

  • CS_FluorLine_Kissel_Nonradiative_Cascade

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

  • CS_FluorLine_Kissel_Radiative_Cascade

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

  • CS_FluorLine_Kissel_no_Cascade

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

  • CS_FluorShell

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

  • CS_FluorShell_Kissel

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

  • CS_FluorShell_Kissel_Cascade

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

  • CS_FluorShell_Kissel_Nonradiative_Cascade

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

  • CS_FluorShell_Kissel_Radiative_Cascade

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

  • CS_FluorShell_Kissel_no_Cascade

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

  • CS_KN

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

  • CS_Photo

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

  • CS_Photo_CP

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

  • CS_Photo_Partial

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

  • CS_Photo_Total

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

  • CS_Photo_Total_CP

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

  • CS_Rayl

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

  • CS_Rayl_CP

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

  • CS_Total

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

  • CS_Total_CP

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

  • CS_Total_Kissel

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

  • CS_Total_Kissel_CP

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

  • CSb_Compt

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

  • CSb_Compt_CP

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

  • CSb_FluorLine

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

  • CSb_FluorLine_Kissel

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

  • CSb_FluorLine_Kissel_Cascade

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

  • CSb_FluorLine_Kissel_Nonradiative_Cascade

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

  • CSb_FluorLine_Kissel_Radiative_Cascade

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

  • CSb_FluorLine_Kissel_no_Cascade

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

  • CSb_FluorShell

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

  • CSb_FluorShell_Kissel

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

  • CSb_FluorShell_Kissel_Cascade

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

  • CSb_FluorShell_Kissel_Nonradiative_Cascade

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

  • CSb_FluorShell_Kissel_Radiative_Cascade

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

  • CSb_FluorShell_Kissel_no_Cascade

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

  • CSb_Photo

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

  • CSb_Photo_CP

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

  • CSb_Photo_Partial

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

  • CSb_Photo_Total

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

  • CSb_Photo_Total_CP

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

  • CSb_Rayl

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

  • CSb_Rayl_CP

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

  • CSb_Total

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

  • CSb_Total_CP

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

  • CSb_Total_Kissel

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

  • CSb_Total_Kissel_CP

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

  • CompoundParser

    Parse a chemical compound formula and return its composition.

  • ComptonEnergy

    Calculate the photon energy after Compton scattering.

  • ComptonProfile

    Calculate the Compton profile for an element.

  • ComptonProfile_Partial

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

  • CosKronTransProb

    Get the Coster-Kronig transition probability.

  • DCSP_Compt

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

  • DCSP_Compt_CP

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

  • DCSP_Rayl

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

  • DCSP_Rayl_CP

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

  • DCSPb_Compt

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

  • DCSPb_Compt_CP

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

  • DCSPb_Rayl

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

  • DCSPb_Rayl_CP

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

  • DCS_Compt

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

  • DCS_Compt_CP

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

  • DCS_Rayl

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

  • DCS_Rayl_CP

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

  • DCSb_Compt

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

  • DCSb_Compt_CP

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

  • DCSb_Rayl

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

  • DCSb_Rayl_CP

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

  • EdgeEnergy

    Get the absorption edge energy for a given shell.

  • ElectronConfig

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

  • ElementDensity

    Get the density of a pure element.

  • FF_Rayl

    Calculate the Rayleigh form factor.

  • Fi

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

  • Fii

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

  • FluorYield

    Get the fluorescence yield for a given shell.

  • GetCompoundDataNISTByIndex

    Get NIST compound data by index number.

  • GetCompoundDataNISTByName

    Get NIST compound data by compound name.

  • GetCompoundDataNISTList

    Get the list of all available NIST compound names.

  • GetRadioNuclideDataByIndex

    Get radionuclide data by index number.

  • GetRadioNuclideDataByName

    Get radionuclide data by name.

  • JumpFactor

    Get the jump factor for a given absorption edge.

  • LineEnergy

    Get the energy of an X-ray fluorescence line.

  • MomentTransf

    Calculate the momentum transfer for X-ray scattering.

  • RadRate

    Get the radiative rate for a given fluorescence line.

  • Refractive_Index_Im

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

  • Refractive_Index_Re

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

  • SF_Compt

    Calculate the Compton incoherent scattering function.

  • SymbolToAtomicNumber

    Convert 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

no findings
  • 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
Overall 82/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

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
Add to Cursor

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.