MCP Server (AI Agent Integration)#
SQuADDS includes a built-in Model Context Protocol (MCP) server that lets AI coding assistants interact with the entire database — searching designs, interpolating parameters, and exploring components — through a standardized protocol.
Agent Setup (Copy-Paste Prompt)#
If you’re using an AI coding assistant (Claude, Cursor, Copilot, Gemini, Codex), just paste this prompt to have it set up SQuADDS MCP for you:
I need you to set up the SQuADDS MCP server so I can access the superconducting
qubit design database through you. Here's what to do:
1. Clone the repo and install:
git clone https://github.com/LFL-Lab/SQuADDS.git
cd SQuADDS
uv sync --extra mcp
2. Add the MCP server to your config. The command to run the server is:
uv run --directory /path/to/SQuADDS squadds-mcp
3. Once connected, read the `squadds://guide` resource for a quick overview
of available tools.
The server exposes these key tools:
- `list_components` / `list_datasets` — explore the database
- `find_closest_designs` — find designs matching target Hamiltonian parameters
- `interpolate_design` — get physics-interpolated designs
- `get_hamiltonian_param_keys` — discover valid search parameters
Typical target parameter ranges:
- qubit_frequency_GHz: 3–8
- anharmonicity_MHz: −500 to −50
- cavity_frequency_GHz: 5–12
- kappa_kHz: 10–1000
- g_MHz: 10–200
Please set this up and confirm you can access the SQuADDS tools.
Manual Setup#
Install#
git clone https://github.com/LFL-Lab/SQuADDS.git
cd SQuADDS
uv sync --extra mcp
Run#
# stdio mode (for local AI assistants)
uv run squadds-mcp
# HTTP mode (for networked/remote usage)
SQUADDS_MCP_TRANSPORT=streamable-http uv run squadds-mcp
AI Client Configuration#
Claude Desktop#
Add to claude_desktop_config.json:
{
"mcpServers": {
"squadds": {
"command": "uv",
"args": ["run", "--directory", "/path/to/SQuADDS", "squadds-mcp"]
}
}
}
Claude Code#
claude mcp add squadds -- uv run --directory /path/to/SQuADDS squadds-mcp
Cursor#
Add to .cursor/mcp.json in your project:
{
"mcpServers": {
"squadds": {
"command": "uv",
"args": ["run", "--directory", "/path/to/SQuADDS", "squadds-mcp"]
}
}
}
VS Code (Copilot)#
Add to .vscode/settings.json:
{
"mcp": {
"servers": {
"squadds": {
"command": "uv",
"args": ["run", "--directory", "/path/to/SQuADDS", "squadds-mcp"]
}
}
}
}
Antigravity / Gemini CLI#
Add to ~/.gemini/settings.json (or project-level .gemini/settings.json):
{
"mcpServers": {
"squadds": {
"command": "uv",
"args": ["run", "--directory", "/path/to/SQuADDS", "squadds-mcp"]
}
}
}
OpenAI Codex CLI#
codex --mcp-config mcp.json
With mcp.json:
{
"mcpServers": {
"squadds": {
"command": "uv",
"args": ["run", "--directory", "/path/to/SQuADDS", "squadds-mcp"]
}
}
}
Available Tools#
Database Tools#
Tool |
Description |
Key Parameters |
|---|---|---|
|
List supported component types |
— |
|
List component names for a type |
|
|
List all dataset configurations |
— |
|
Overview of all datasets |
— |
|
Dataset metadata (features, size) |
|
|
Load dataset rows (paginated) |
|
|
All experimental devices |
— |
|
Simulation results for a device |
|
Analysis Tools#
Tool |
Description |
Key Parameters |
|---|---|---|
|
Valid target parameter keys |
|
|
Primary search tool — find closest designs |
|
Interpolation Tools#
Tool |
Description |
Key Parameters |
|---|---|---|
|
Physics-scaled interpolated design |
|
Contribution Tools#
Tool |
Description |
Key Parameters |
|---|---|---|
|
Reference experimental device info |
|
|
Fabrication recipe for a device |
|
|
All data contributors |
— |
Available Resources#
URI |
Description |
|---|---|
|
SQuADDS + MCP server versions |
|
BibTeX citation |
|
Supported component types |
|
Dataset configuration strings |
|
Dataset summary table |
|
Quick reference for AI agents |
Available Prompts#
Prompt |
Description |
Parameters |
|---|---|---|
|
Step-by-step coupled system design |
Target H-params |
|
Database exploration guide |
— |
|
Natural-language design search |
|
Environment Variables#
Variable |
Default |
Description |
|---|---|---|
|
— |
HuggingFace API token |
|
|
Transport: |
|
|
HTTP host (only for HTTP transport) |
|
|
HTTP port (only for HTTP transport) |
Testing with MCP Inspector#
# Start the server in HTTP mode
SQUADDS_MCP_TRANSPORT=streamable-http uv run squadds-mcp &
# Connect with the Inspector
npx -y @modelcontextprotocol/inspector
# Then connect to http://localhost:8000/mcp
Further Documentation#
Full MCP documentation: MCP_README.md
Developer guide for extending the MCP server: MCP_DEVELOPER_GUIDE.md
Model Context Protocol specification: modelcontextprotocol.io