Pythia MCP

Pythia MCP

An MCP server that interfaces with the Lilith library to analyze Higgs boson phenomenology and LHC experimental data. It enables AI assistants to constrain new physics theories by calculating likelihoods and signal strengths for various particle physics scenarios.

Category
Visit Server

README

<div align="center">

<!-- Animated Header --> <img src="https://capsule-render.vercel.app/api?type=waving&color=gradient&customColorList=24,25,26&height=200&section=header&text=๐Ÿ”ฎ%20PYTHIA&fontSize=80&fontColor=fff&animation=twinkling&fontAlignY=35&desc=Higgs%20Boson%20Phenomenology%20MCP%20Server&descAlignY=55&descSize=18"/>

<br/>

<!-- Badges Row 1 --> <p> <a href="https://modelcontextprotocol.io"><img src="https://img.shields.io/badge/MCP-Server-00d4aa?style=for-the-badge" alt="MCP Server"/></a> <a href="https://home.cern"><img src="https://img.shields.io/badge/CERN-LHC_Data-0033a0?style=for-the-badge" alt="CERN"/></a> <a href="LICENSE"><img src="https://img.shields.io/badge/License-GPL_v3-blue?style=for-the-badge" alt="License"/></a> <a href="#"><img src="https://img.shields.io/badge/Physics-Research-9b59b6?style=for-the-badge" alt="Physics"/></a> </p>

<!-- Badges Row 2 --> <p> <img src="https://img.shields.io/badge/TypeScript-โœ“-3178c6?style=flat-square&logo=typescript&logoColor=white" alt="TypeScript"/> <img src="https://img.shields.io/badge/Python-3.6+-3776ab?style=flat-square&logo=python&logoColor=white" alt="Python"/> <img src="https://img.shields.io/badge/Lilith-Interface-ff6b6b?style=flat-square" alt="Lilith"/> <img src="https://img.shields.io/badge/Higgs_Boson-125_GeV-gold?style=flat-square" alt="Higgs"/> <img src="https://img.shields.io/badge/Claude_Desktop-Ready-blueviolet?style=flat-square&logo=anthropic" alt="Claude"/> </p>

<br/>

<!-- Tagline Box --> <table> <tr> <td>

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
โ•‘                                                                              โ•‘
โ•‘   ๐Ÿ”ฎ  Named after the Oracle of Delphi, Pythia brings the power of          โ•‘
โ•‘       particle physics to your AI assistant โ€” enabling Claude to            โ•‘
โ•‘       constrain new physics from LHC Higgs boson measurements.              โ•‘
โ•‘                                                                              โ•‘
โ•‘       โš›๏ธ  Interface: Lilith library for Higgs phenomenology                  โ•‘
โ•‘       ๐Ÿ“Š  Data: ATLAS + CMS signal strength measurements                     โ•‘
โ•‘       ๐Ÿ”ฌ  Physics: Beyond Standard Model constraints                         โ•‘
โ•‘                                                                              โ•‘
โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

</td> </tr> </table>

<br/>

<!-- Quick Links --> ๐Ÿš€ Quick Start ยท โš›๏ธ Physics ยท ๐Ÿ”ง Tools ยท ๐Ÿ“– Examples ยท ๐Ÿ“š Citations

<br/>

</div>


<br/>

๐Ÿ›๏ธ Built on Lilith

<div align="center">

โš ๏ธ IMPORTANT: This project is a wrapper around Lilith-2, a powerful Python tool developed by Sabine Kraml and collaborators at LPSC Grenoble. All physics calculations are performed by Lilith โ€” Pythia simply provides an MCP interface.

โญ Star the Original Lilith Repository and cite the Lilith papers in your research!

</div>

<br/>


<br/>

๐ŸŽฏ What is Pythia?

<table> <tr> <td width="50%">

๐Ÿ”ฌ The Challenge

New physics theories predict
modified Higgs couplings...

But how do we test them
against LHC data?

โŒ Complex calculations
โŒ Multiple decay channels
โŒ Statistical combinations
โŒ Expert knowledge required

</td> <td width="50%">

โœ… Pythia Solution

Ask Claude in plain English:

"What constraints does LHC
 data place on a two-Higgs
 doublet model?"

โœ… Lilith handles the math
โœ… Signal strengths computed
โœ… Constraints calculated
โœ… Results explained clearly

</td> </tr> </table>

<br/>


<br/>

โš›๏ธ Physics Background

<div align="center">

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                                                                             โ”‚
โ”‚                    THE 125 GeV HIGGS BOSON                                 โ”‚
โ”‚                                                                             โ”‚
โ”‚    Discovery: July 4, 2012 at CERN's Large Hadron Collider                 โ”‚
โ”‚                                                                             โ”‚
โ”‚    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”         โ”‚
โ”‚    โ”‚                                                             โ”‚         โ”‚
โ”‚    โ”‚   Production Modes          Decay Channels                  โ”‚         โ”‚
โ”‚    โ”‚   โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€          โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€                  โ”‚         โ”‚
โ”‚    โ”‚   โ€ข ggF (gluon fusion)      โ€ข H โ†’ ฮณฮณ (diphoton)            โ”‚         โ”‚
โ”‚    โ”‚   โ€ข VBF (vector boson)      โ€ข H โ†’ ZZ* โ†’ 4โ„“                 โ”‚         โ”‚
โ”‚    โ”‚   โ€ข WH, ZH (associated)     โ€ข H โ†’ WW* โ†’ โ„“ฮฝโ„“ฮฝ               โ”‚         โ”‚
โ”‚    โ”‚   โ€ข ttH (top associated)    โ€ข H โ†’ bbฬ„, ฯ„ฯ„, ฮผฮผ               โ”‚         โ”‚
โ”‚    โ”‚                                                             โ”‚         โ”‚
โ”‚    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜         โ”‚
โ”‚                                                                             โ”‚
โ”‚    Signal Strength: ฮผ = ฯƒ_observed / ฯƒ_SM_predicted                        โ”‚
โ”‚                                                                             โ”‚
โ”‚    ฮผ = 1  โ†’  Standard Model โœ“                                              โ”‚
โ”‚    ฮผ โ‰  1  โ†’  New Physics! ๐ŸŽ‰                                               โ”‚
โ”‚                                                                             โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

</div>

<br/>

๐Ÿ“Š Reduced Couplings (ฮบ-Framework)

<div align="center">

Coupling SM Value Description
C_V 1.0 Coupling to W and Z bosons
C_t 1.0 Coupling to top quark
C_b 1.0 Coupling to bottom quark
C_ฯ„ 1.0 Coupling to tau lepton
C_g 1.0 Effective coupling to gluons (loop)
C_ฮณ 1.0 Effective coupling to photons (loop)

</div>

<br/>


<br/>

๐Ÿš€ Quick Start

๐Ÿ“ฆ Installation

# Clone the repository
git clone https://github.com/consigcody94/pythia-mcp.git
cd pythia-mcp

# Install Node.js dependencies
npm install

# Build TypeScript
npm run build

# Ensure Python dependencies are installed
pip install numpy scipy

โšก Claude Desktop Configuration

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "pythia": {
      "command": "node",
      "args": ["/path/to/pythia-mcp/dist/index.js"],
      "env": {
        "LILITH_DIR": "/path/to/pythia-mcp/lilith",
        "PYTHON_CMD": "python3"
      }
    }
  }
}

โœ… Verify Installation

cd lilith
python run_lilith.py userinput/example_couplings.xml

<br/>


<br/>

๐Ÿ”ง Available Tools

๐Ÿ”ฌ Core Analysis

<div align="center">

Tool Description
compute_likelihood Calculate -2 log(L) for BSM scenarios
compute_sm_likelihood Get Standard Model reference
compute_pvalue Calculate p-value for model comparison
scan_1d 1D parameter scan with likelihood profile
scan_2d 2D scan for contour plots

</div>

๐Ÿ“Š Data Management

<div align="center">

Tool Description
list_experimental_data List datasets in Lilith database
search_hepdata Search HEPData for new measurements
fetch_hepdata_record Download specific HEPData record
get_latest_higgs_data Fetch latest from all sources

</div>

๐Ÿงช Physics Models

<div align="center">

Tool Description
analyze_2hdm Two-Higgs-Doublet Model analysis
analyze_singlet_extension Higgs singlet extension
get_sm_predictions SM cross sections & branching ratios
convert_to_signal_strength Convert couplings to ฮผ values

</div>

<br/>


<br/>

๐Ÿ“– Usage Examples

Example 1: Standard Model Check

"Use Pythia to compute the Standard Model likelihood and tell me if the Higgs data is consistent with the SM."

Example 2: BSM Scenario

"Calculate the likelihood for a model where the Higgs coupling to top quarks is 0.9 and to vector bosons is 1.1"

{
  "mode": "couplings",
  "Ct": 0.9,
  "CV": 1.1
}

Example 3: 2HDM Analysis

"Analyze a Type-II 2HDM with tan(ฮฒ) = 2 and sin(ฮฒ-ฮฑ) = 0.99"

{
  "type": "II",
  "tanBeta": 2,
  "sinBetaMinusAlpha": 0.99
}

Example 4: Parameter Scan

"Scan the CV-CF plane from 0.8 to 1.2 with 50 steps each"

{
  "param1": {"name": "CV", "min": 0.8, "max": 1.2, "steps": 50},
  "param2": {"name": "CF", "min": 0.8, "max": 1.2, "steps": 50}
}

<br/>


<br/>

๐Ÿ“Š Data Sources

<div align="center">

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                                                                             โ”‚
โ”‚   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”            โ”‚
โ”‚   โ”‚  ๐Ÿ”ฌ LILITH DB   โ”‚  โ”‚  ๐Ÿ“š HEPDATA     โ”‚  โ”‚  ๐ŸŒ CERN OPEN   โ”‚            โ”‚
โ”‚   โ”‚  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚  โ”‚  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚  โ”‚  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚            โ”‚
โ”‚   โ”‚  Run 1 (7+8TeV) โ”‚  โ”‚  Official HEP   โ”‚  โ”‚  Real collision โ”‚            โ”‚
โ”‚   โ”‚  Run 2 (13TeV)  โ”‚  โ”‚  data archive   โ”‚  โ”‚  data & MC      โ”‚            โ”‚
โ”‚   โ”‚  ATLAS + CMS    โ”‚  โ”‚  CERN/Durham    โ”‚  โ”‚  analysis code  โ”‚            โ”‚
โ”‚   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜            โ”‚
โ”‚                                                                             โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

</div>

<br/>


<br/>

๐Ÿ—๏ธ Architecture

pythia-mcp/
โ”œโ”€โ”€ ๐Ÿ“ฆ src/
โ”‚   โ”œโ”€โ”€ index.ts          # MCP server entry point
โ”‚   โ””โ”€โ”€ tools/            # Tool implementations
โ”‚
โ”œโ”€โ”€ ๐Ÿ”ฎ lilith/            # Lilith library (bundled)
โ”‚   โ”œโ”€โ”€ run_lilith.py     # Main entry point
โ”‚   โ”œโ”€โ”€ userinput/        # XML input templates
โ”‚   โ””โ”€โ”€ data/             # Experimental database
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ฆ dist/              # Compiled output
โ”œโ”€โ”€ ๐Ÿ“„ package.json
โ””โ”€โ”€ ๐Ÿ“„ tsconfig.json

<br/>


<br/>

๐Ÿ“š Citations & Acknowledgments

๐Ÿ“– Required Citations

If you use Pythia for research, you MUST cite Lilith:

@article{Bernon:2015hsa,
    author = "Bernon, Jรฉrรฉmy and Dumont, Bรฉranger",
    title = "{Lilith: A tool for constraining new physics from Higgs measurements}",
    journal = "Eur. Phys. J. C",
    volume = "75",
    pages = "440",
    year = "2015",
    doi = "10.1140/epjc/s10052-015-3645-9",
    eprint = "1502.04138",
    archivePrefix = "arXiv"
}

@article{Kraml:2019sis,
    author = "Kraml, Sabine and others",
    title = "{Lilith-2: Improved precision constraints}",
    year = "2019",
    eprint = "1908.03952",
    archivePrefix = "arXiv"
}

๐Ÿ™ Special Thanks

<div align="center">

Sabine Kraml & Lilith Team LPSC Grenoble
ATLAS & CMS Collaborations Higgs measurements
HEPData Team Durham/CERN
Anthropic MCP Protocol

</div>

<br/>


<br/>

๐Ÿ”— References

<div align="center">

Resource Link
Lilith-2 github.com/sabinekraml/Lilith-2
Lilith Paper arXiv:1502.04138
HEPData hepdata.net
CERN Open Data opendata.cern.ch
LHC Higgs XS WG twiki.cern.ch

</div>

<br/>


<br/>

๐Ÿ“„ License

<div align="center">

GNU General Public License v3.0

This project and Lilith are licensed under GPL v3 - see LICENSE for details.

</div>

<br/>


<div align="center">

<img src="https://capsule-render.vercel.app/api?type=waving&color=gradient&customColorList=24,25,26&height=100&section=footer"/>

<br/>

๐Ÿ”ฎ Pythia โ€” Seeking Truth in the Higgs Sector

<br/>

"The Higgs boson is the key to understanding the origin of mass in the universe." <br/> โ€” Peter Higgs

<br/>

Made with dedication to open science and particle physics research

<br/>

โฌ† Back to Top

</div>

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured