FTIR.fun 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., "@FTIR.fun MCP Serveranalyze FTIR peaks at 1720, 1650, and 1050 cm-1"
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.
FTIR.fun MCP Server
MCP server for FTIR spectral-library work and material identification. Connects AI assistants to 135,000+ FTIR reference spectra with hosted tools for unknown-spectrum analysis, peak explanation, reference-spectrum lookup, and historical-result fetch.
Tools
analyze_ftir_spectrum
Search the FTIR.fun spectral library for one unknown FTIR spectrum.
Parameter | Type | Required | Description |
| string | No | Natural-language FTIR request. Peak positions (e.g. "1730, 1600, 1250 cm-1") are extracted automatically. |
| number[] | No | FTIR peak positions in cm⁻¹ (e.g. |
| string | No | Base64-encoded FTIR spectrum file (supports 28+ formats: Thermo .spa/.spc, Bruker .opus, PerkinElmer .sp, JCAMP-DX, CSV, Excel). |
| string | No | Original filename for format detection (e.g. |
| integer | No | Number of ranked candidates to return (1–50, default 15). |
| integer | No | Peak matching tolerance in cm⁻¹ (1–30, default 8). |
Returns: Ranked candidate materials with library similarity scores, peak-by-peak explanations linked to published literature (DOI), confidence levels, and uncertainty disclosures.
explain_peaks
Explain one or more FTIR peaks without requiring a full library search.
Parameter | Type | Required | Description |
| string | No | Natural-language FTIR peak question, for example |
| number[] | No | One or more FTIR peak positions in cm⁻¹. |
| string | No | Optional sampling mode such as |
Returns: Structured peak explanations with supporting assignments and uncertainty wording when available.
find_spectra
Find FTIR library reference spectra by substance name, CAS number, spectrum number, or keywords.
Parameter | Type | Required | Description |
| string | Yes | Substance name, CAS number, FTIR library |
| integer | No | Number of reference spectra to return (1–20, default 10). |
Returns: Matching reference spectra with num, names, CAS, peak markers, and library curve data.
fetch_result
Fetch one historical FTIR.fun result by report number.
Parameter | Type | Required | Description |
| string | Yes | FTIR.fun report/result number. |
| string | No | Display language for the stored result context, default |
Returns: Structured historical result context with report_url, headline, summary, report_view, and result_context.
Related MCP server: Chemspace MCP Server
Hosted MCP (Recommended)
Connect directly to the production endpoint — no local install required:
{
"mcpServers": {
"ftirfun": {
"url": "https://ftir.fun/mcp",
"headers": {
"Authorization": "Bearer <YOUR_FTIRFUN_API_KEY>"
}
}
}
}One-line setup for Claude Code:
claude mcp add ftirfun https://ftir.fun/mcpThe hosted endpoint exposes four FTIR tools (analyze_ftir_spectrum, explain_peaks, find_spectra, fetch_result) and is the canonical production service.
Self-Hosted (Local Wrapper)
This repository provides a lightweight local MCP wrapper that proxies to the hosted API. The local wrapper exposes the same four FTIR tools as the hosted server.
Configuration
export FTIRFUN_API_KEY="your-ftirfun-api-key"Optional:
export FTIRFUN_API_BASE_URL="https://ftir.fun"
export FTIRFUN_API_TIMEOUT_SECONDS="120"Run Locally (stdio)
python -m venv .venv
. .venv/bin/activate
pip install .
ftirfun-mcpRun Streamable HTTP
FTIRFUN_API_KEY="your-ftirfun-api-key" \
ftirfun-mcp --transport streamable-http --host 127.0.0.1 --port 8001Docker
docker build -t ftirfun-mcp .
docker run --rm -p 8001:8001 -e FTIRFUN_API_KEY="your-ftirfun-api-key" ftirfun-mcpPush This Repo To GitHub
This repo includes its own push helper:
bash push_github_main.sh origin main "your commit message"Token resolution order:
GITHUB_ENV_FILE=/path/to/env./.envshared fallback
/home/bob/projects/ftirfun/.env
For registry introspection, the server can start without an API key. Tool calls that require the hosted API return a structured api_key_required error until FTIRFUN_API_KEY is configured.
Tool Boundary
Use this MCP server for FTIR spectral-library screening only.
Do not use for:
Non-FTIR spectroscopy
General chemistry Q&A
Institutional AI-only review of existing third-party reports
Accredited laboratory certification
Registry Links
Hosted MCP: https://ftir.fun/mcp
Server Card: https://ftir.fun/.well-known/mcp/server-card.json
Website: https://ftir.fun
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/jxbaoxiaodong/ftirfun-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server