XrayDB MCP Server
Click on "Install 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., "@XrayDB MCP ServerGet the K-edge energy of 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.
XrayDB MCP Server
Prototype of a Model Context Protocol (MCP) server that provides access to X-ray properties of elements via the XrayDB library.
Installation
Claude Desktop (one-click via .mcpb)
Prerequisite: uv must be installed and on your PATH.
Download
xraydb-mcp-server.mcpbfrom the Releases page (or build it locally with./build-mcpb.sh).Double-click the file — Claude Desktop will prompt to install it.
On first launch,
uv runwill resolvemcpandxraydbon the fly; no virtualenv setup needed.
Related MCP server: dexMCP
Manual install (any MCP client)
Using uv
Cool is that this repo/server has only 2 pip installable dependencies:
mcpfor the protocolxraydbfor the tool usage
You can install the dependencies in a virtual environment using [uv] and pip:
uv venv
uv pip install -r requirements.txtRunning the MCP Server
After installing the dependencies, you can start the MCP server with:
uv run </path/to/dir>/src/server.pyIf you like to start the server using the startup.bat or startup.sh scripts, make sure the script is executable. Make the script executable (if needed) and run it for Linux or MacOS:
chmod +x startup.shThis will launch the server and make the XrayDB endpoints available via the MCP protocol. You can add it now in your favorite IDE. Highly recommend goose.
Collaborate
Please feel free to open a PR or issue.
So far implemented:
xray_edges– Get X-ray absorption edges for an element.xray_edge– Get data for a specific X-ray absorption edge.guess_edge– Guess element and edge from energy.atomic_number– Return atomic number for an element.atomic_density– Return atomic density for an element.mirror_reflectivity– Calculate reflectivity for a single-layer mirror.multilayer_reflectivity– Calculate reflectivity for a multilayer mirror stack.material_mu– Get X-ray attenuation length for a material.chantler_energies– List Chantler tabulated energies for an element.f0– Get elastic X-ray scattering factor for an ion.f0_ions– List supported ions for f0 calculation.chantler_data– Get data from Chantler tables for an element and energy.f1_chantler– Get real part of anomalous scattering factor (f1) from Chantler.f2_chantler– Get imaginary part of anomalous scattering factor (f2) from Chantler.mu_chantler– Get mass attenuation coefficient (mu/rho) from Chantler tables.lambert_beer– Calculate X-ray transmission using Lambert-Beer law.mu_elam– Get mass attenuation coefficient from Elam tables.coherent_cross_section_elam– Get coherent scattering cross-section from Elam.incoherent_cross_section_elam– Get incoherent scattering cross-section from Elam.xray_lines– List X-ray emission lines for an element.xray_line– Get data for a specific X-ray emission line.coated_reflectivity– Calculate reflectivity for a coated mirror.ionchamber_fluxes– Calculate ion chamber and PIN diode fluxes.dynamical_theta_offset– Calculate angular offset from Bragg diffraction.transmission_sample– Analyze transmission mode sample composition.formula_to_mass_fracs– Calculate mass fractions from a formula.mass_fracs_to_molar_fracs– Convert mass fractions to molar fractions.validate_mass_fracs– Validate and normalize mass fractions.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityFmaintenanceA 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.Last updated2
- Alicense-qualityDmaintenanceA Model Context Protocol server that wraps pypokedex to provide Pokemon data tools for MCP-compatible applications.Last updated1MIT
- AlicenseAqualityAmaintenanceAn MCP server for chemistry: it computes molecular weights and isotope distributions from chemical formulae and resolves compound name/formula lookups, backed by NIST atomic-weight data and a cached finder over multiple online and offline sources.Last updated41GPL 3.0
- Alicense-qualityDmaintenanceMCP server that wraps xraylarch for X-ray spectroscopy analysis, enabling loading, processing, analyzing, and plotting XAS/XAFS spectra through natural language.Last updated2BSD 3-Clause
Related MCP Connectors
MCP server for fcc-ecfs
MCP (Model Context Protocol) server for Appwrite
Remote MCP server for XDaLa workflow preparation on XGR.Network.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/linegeek/XrayDB_MCP_Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server