Model Interaction (MCP)

This article introduces you to how to connect FIRERPA with large language models (based on MCP). FIRERPA has implemented the MCP server protocol at the underlying level, allowing you to write your own MCP plugins and provide services through the standard port 65000.

Note

FIRERPA’s built-in MCP service supports tool-call, resource-read, and prompts.

Installing the Official Extension

We provide an official MCP service for you, which you can download from extensions/firerpa.py. You can also reference its coding method to write or extend plugin functionality yourself. After downloading the extension plugin script, upload it to the device’s /data/usr/modules/extension directory via remote desktop or manual push, then restart the device or restart the FIRERPA service.

Using the Official Extension

For Claude, you need to first find the Claude settings page and follow the steps shown in the image below. Then, according to the prompts, edit Claude’s claude_desktop_config.json configuration file and write the following MCP json service configuration.

Tip

Claude currently doesn’t seem to support SSE connections. You need to ensure that nodejs, npx, and other related commands are installed on your computer and use supergateway to connect.

{"mcpServers": {"firerpa": {"command": "npx", "args": ["-y", "supergateway", "--sse", "http://192.168.0.2:65000/firerpa/sse/"]}}}

Example

For Cursor, you need to open Cursor Settings, follow the steps shown in the image, and enter the following configuration.

{"mcpServers": {"firerpa": {"url": "http://192.168.0.2:65000/firerpa/sse/"}}}

Example

Attention

Please note that you should change the link in the configuration to your own device’s IP address.

Writing MCP Extensions

Hint

Documentation Coming soon. Stay tuned