Rabi MCP Server
平台与服务by manasp21
Enable seamless integration of language models with external tools and resources through a standardized protocol. Facilitate dynamic access to data, execution of actions, and retrieval of prompt templates to enhance AI capabilities. Simplify the development of intelligent applications by providing a robust bridge between LLMs and real-world context.
什么是 Rabi MCP Server?
Enable seamless integration of language models with external tools and resources through a standardized protocol. Facilitate dynamic access to data, execution of actions, and retrieval of prompt templates to enhance AI capabilities. Simplify the development of intelligent applications by providing a robust bridge between LLMs and real-world context.
README
Rabi MCP Server
Atomic, Molecular and Optical (AMO) Physics MCP Server
Rabi MCP Server is a Model Context Protocol (MCP) server that provides essential quantum physics simulation tools for Claude and other AI assistants. Named after the Rabi oscillations fundamental to quantum optics, this server offers 5 core tools for simulating basic quantum systems and analyzing AMO physics phenomena.
Core Features
Available Physics Tools (5)
1. Two-Level Atom Simulation
- Simulates quantum dynamics of two-level atomic systems
- Real-time population dynamics and coherence effects
- Rabi frequency and detuning parameter control
2. Rabi Oscillations Analysis
- Calculates coherent oscillations between atomic energy levels
- On-resonance and off-resonance behavior
- Time-resolved population transfer analysis
3. Bose-Einstein Condensate (BEC) Simulation
- Basic BEC dynamics using simplified Gross-Pitaevskii equation
- Particle interactions and quantum statistics
- Characteristic length scales and energy analysis
4. Absorption Spectrum Calculation
- Spectral line analysis with natural and Doppler broadening
- Temperature-dependent linewidth effects
- Lorentzian and Gaussian profile modeling
5. Cavity QED Simulation
- Basic cavity quantum electrodynamics using Jaynes-Cummings model
- Atom-photon coupling dynamics
- Strong and weak coupling regime analysis
Installation Methods
Choose your preferred installation method below. All methods give you access to the same 5 core AMO physics tools.
Method 1: Smithery Cloud (Recommended)
Deploy directly to the cloud with zero local setup:
# Deploy to Smithery cloud
npx @smithery/cli deploy https://github.com/manasp21/rabi-mcp.git
What you get:
- Instant cloud deployment (no local setup needed)
- Automatic scaling and resource management
- Built-in configuration management
- 5 core physics tools ready to use
- Integration with Claude and other AI assistants
Deployment Process:
- Deploy: Run the deploy command above
- Wait: Deployment typically takes 2-5 minutes
- Verify: Check deployment status in Smithery dashboard
- Test: Server will be accessible once deployment completes
Method 2: Manual Installation
For local development and testing:
# Clone repository
git clone https://github.com/manasp21/rabi-mcp.git
cd rabi-mcp
# Create virtual environment
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# Install dependencies
pip install --upgrade pip
pip install -r requirements.txt
# Test the server
python run_simple_server.py
Method 3: Docker
Build and run with Docker:
# Clone and build
git clone https://github.com/manasp21/rabi-mcp.git
cd rabi-mcp
docker build -t rabi-mcp-server .
docker run -p 8000:8000 rabi-mcp-server
Testing Your Installation
Quick Test
After installation, test with:
# Test basic server functionality
curl http://localhost:8000/health
# Or test a physics calculation
python -c "
import sys
sys.path.append('src')
from http_server import execute_physics_tool
result = execute_physics_tool('simulate_two_level_atom', {
'rabi_frequency': 1e6,
'detuning': 0,
'evolution_time': 1e-6
})
print('Test passed!' if result['success'] else 'Test failed!')
"
Configuration
Basic configuration via environment variables:
export PORT=8000
export HOST=0.0.0.0
export LOG_LEVEL=INFO
Usage Examples
Tool 1: Two-Level Atom Simulation
{
"rabi_frequency": 1000000, # 1 MHz in rad/s
"detuning": 0, # On resonance
"evolution_time": 0.000001 # 1 μs
}
Tool 2: Rabi Oscillations
{
"rabi_frequency": 2000000, # 2 MHz in rad/s
"max_time": 0.00001, # 10 μs
"time_points": 1000
}
Tool 3: BEC Simulation
{
"particle_number": 1000,
"scattering_length": 5.29, # Bohr radii
"trap_frequency": 100 # Hz
}
Tool 4: Absorption Spectrum
{
"transition_frequency": 3.8e15, # rad/s
"linewidth": 6.07e6, # rad/s
"temperature": 300 # Kelvin
}
Tool 5: Cavity QED
{
"coupling_strength": 1000000, # 1 MHz in rad/s
"cavity_frequency": 3.8e15, # rad/s
"atom_frequency": 3.8e15 # rad/s
}
Available Tools (5)
simulate_two_level_atom- Two-level quantum system dynamicsrabi_oscillations- Coherent population oscillationsbec_simulation- Bose-Einstein condensate physicsabsorption_spectrum- Spectral line analysiscavity_qed- Atom-cavity coupling dynamics
Contributing
Contributions welcome! Please submit issues and pull requests on GitHub.
License
MIT License - see LICENSE file for details.
Acknowledgments
- NumPy/SciPy: Scientific computing foundation
- MCP Protocol: Model Context Protocol standard
- AMO Physics Community: Physics knowledge base
<div align="center">
Rabi MCP Server - AMO Physics Tools
</div>常见问题
Rabi MCP Server 是什么?
Enable seamless integration of language models with external tools and resources through a standardized protocol. Facilitate dynamic access to data, execution of actions, and retrieval of prompt templates to enhance AI capabilities. Simplify the development of intelligent applications by providing a robust bridge between LLMs and real-world context.
相关 Skills
MCP构建
by anthropics
聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。
✎ 想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。
Slack动图
by anthropics
面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。
✎ 帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。
接口测试套件
by alirezarezvani
扫描 Next.js、Express、FastAPI、Django REST 的 API 路由,自动生成覆盖鉴权、参数校验、错误码、分页、上传与限流场景的 Vitest 或 Pytest 测试套件。
✎ 帮你把API与集成测试自动化跑顺,减少回归漏测;能力全面,尤其适合复杂接口场景的QA团队。
相关 MCP Server
Slack 消息
编辑精选by Anthropic
Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。
✎ 这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。
by netdata
io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。
✎ 这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。
by d4vinci
Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。
✎ 这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。