Python-based MCP server enabling seamless interaction with EPICS process variables by retrieving, setting, and fetching detailed PV information through Model Context Protocol for efficient control system integration.
python
0 tools
May 29, 2025
Updated Jun 4, 2025
Supercharge Your AI with EPICS MCP Server
MCP Server
Unlock the full potential of EPICS MCP Server through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.
Model Context Protocol server enabling seamless interaction with SeaTunnel via LLM interfaces, offering dynamic connection management, comprehensive job submission and monitoring, system overview, and REST API integration for efficient data pipeline operations.
Model Context Protocol server enabling seamless interaction with Replicate models through semantic search, prediction management, image handling, and detailed model exploration via a tool-based interface.
Python-based Model Context Protocol server enabling Bluetooth control of the Bittle robot with movement, pose commands, and seamless integration with MCP tools for remote and programmatic operation.
Provides Model Context Protocol (MCP) tools for seamless Google Chat integration, enabling OAuth2 authentication, listing chat spaces, and retrieving messages with date filtering via a Python-based server.
Provides a TypeScript-based Model Context Protocol server enabling secure access to Prometheus metrics, detailed metadata, and statistical data through a structured JSON API for seamless integration with AI models.
Added May 30, 2025
EPICS-MCP-Server
Overview
The EPICS MCP Server is a Python-based server designed to interact with EPICS (Experimental Physics and Industrial Control System) process variables (PVs). It provides a set of tools to retrieve PV values, set PV values, and fetch detailed information about PVs. The server is built
using the mcp framework and communicates over stdio, making it suitable for integration into larger control systems or workflows.
This tool is particularly useful in environments where EPICS PVs are used for monitoring and controlling hardware or software parameters.
Features
The EPICS MCP Server provides the following tools:
get_pv_value
Create or update a single file in a repository
Inputs:
pv_name (string): The name of the PV variable.
Returns: A JSON object containing the status (success or error) and the retrieved value or an error message.
set_pv_value
Set a new value for a specified PV.
Inputs:
pv_name (string): The name of the PV variable.
pv_value (string): The new value to be set for the PV.
Returns: A JSON object containing the status (success or error) and a confirmation message or an error message.
get_pv_info
Fetches detailed information about a specified PV.
Inputs:
pv_name (string): The name of the PV variable.
Returns: A JSON object containing the status (success or error) and the detailed information about the PV or an error message.
Usage with Langchain
To use this with Langchain, you must install the dependencies required for the project.
pip install -r requirements.txt
Langchain
server_params = StdioServerParameters( command="python",# Make sure to update to the full absolute path to your math_server.py file args=["/path/server.py"],)
EPICS
Before using the EPCIS mcp server, you must successfully install EPCIS on your local machine, ensure that IOC can start normally, and verify that functions such as caget, caput, and cainfo are working properly. For detailed installation instructions, please refer to https://epics-controls.org/resources-and-support/base/.
jiangyan@DESKTOP-84CO9VB:~$ softIoc -d ~/EPICS/DB/test.db
Starting iocInit
############################################################################## EPICS R7.0.8## Rev. 2025-02-13T14:29+0800## Rev. Date build date/time:############################################################################iocRun: All initialization complete
epics>
asyncdefrun():asyncwith stdio_client(server_params)as(read, write):asyncwith ClientSession(read, write)as session:# Initialize the connectionawait session.initialize()# Get tools tools =await load_mcp_tools(session)# Create and run the agent agent = create_react_agent(model, tools) agent_response =await agent.ainvoke({"messages":"To query the value of a PV (Process Variable) named temperature:water"})return agent_response
)
Result:
================================[1m Human Message [0m=================================To query the value of a PV (Process Variable) named temperature:water
==================================[1m Ai Message [0m==================================Tool Calls: get_pv_value (call_vvbXwi51CyYUxEM0hcyvCFCY)Call ID: call_vvbXwi51CyYUxEM0hcyvCFCY
Args: pv_name: temperature:water
=================================[1m Tool Message [0m=================================Name: get_pv_value
{"status":"success","value":88.0}==================================[1m Ai Message [0m==================================The current value of the PV named `temperature:water` is88.0.