mcp-server-syncthing
Enables monitoring and control of Syncthing via its REST API, including status, folders, devices, connections, and file operations.
README
MCP Server for Syncthing
MCP (Model Context Protocol) server providing tools for controlling and monitoring Syncthing via its REST API.
Features
Monitoring Tools
syncthing_get_status- Get overall system status (version, uptime, system info)syncthing_list_folders- List all configured folders with IDs, labels, and pathssyncthing_get_folder_status- Get detailed folder status (sync state, errors, byte counts)syncthing_get_folder_errors- Get list of errors for a specific foldersyncthing_get_file_info- Get file information (local vs global versions)syncthing_list_devices- List all configured devicessyncthing_get_connections- Get current connection status for all devices
Control Tools
syncthing_scan_folder- Trigger folder/subfolder scan to detect changes
Installation
1. Install Dependencies
cd ~/mcp-servers/syncthing
npm install
npm run build
2. Set System Environment Variables
Option A: System-wide (Recommended)
Add to /etc/environment:
SYNCTHING_API_KEY="your-api-key-here"
SYNCTHING_API_URL="http://localhost:8384"
Then logout/login for changes to take effect.
Option B: User profile
Add to ~/.profile (NOT ~/.bashrc):
export SYNCTHING_API_KEY="your-api-key-here"
export SYNCTHING_API_URL="http://localhost:8384"
Then logout/login for changes to take effect.
Note: ~/.bashrc only works for terminal sessions, not GUI apps like Claude Desktop.
To find your API key:
- Open Syncthing web UI (usually http://localhost:8384)
- Go to Actions > Settings > General
- Copy the API Key
3. Configure Claude Desktop
Add to ~/.config/claude/claude_desktop_config.json:
{
"mcpServers": {
"syncthing": {
"command": "node",
"args": ["/home/zdendys/mcp-servers/syncthing/dist/index.js"]
}
}
}
Note: Environment variables are loaded from system, not hardcoded in config.
4. Restart Claude Desktop
The MCP tools will be available in your next Claude Code session.
Usage Examples
Check System Status
syncthing_get_status()
List All Folders
syncthing_list_folders()
Get Folder Status
syncthing_get_folder_status({ folder: "zoaz2-u7tor" })
Check File Information
syncthing_get_file_info({
folder: "zoaz2-u7tor",
file: "minecraft/client-mods-1.21.1.zip"
})
Trigger Folder Scan
syncthing_scan_folder({ folder: "zoaz2-u7tor" })
// Or scan specific subfolder:
syncthing_scan_folder({ folder: "zoaz2-u7tor", sub: "minecraft" })
Check Connection Status
syncthing_get_connections()
Troubleshooting
API Key Not Set
If you see: [ERROR] SYNCTHING_API_KEY environment variable is not set
Solution: Make sure environment variable is set in Claude Desktop config.
Connection Refused
If you see: Syncthing API error: connect ECONNREFUSED
Solution:
- Verify Syncthing is running:
ps aux | grep syncthing - Check API URL is correct (default: http://localhost:8384)
- Verify Syncthing web UI is accessible in browser
API Key Invalid
If you see: Syncthing API error: 403 Forbidden
Solution: Double-check your API key in Syncthing settings.
Development
Build
npm run build
Watch Mode
npm run watch
Test Tools Manually
export SYNCTHING_API_KEY="your-key"
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | node dist/index.js
Architecture
- Language: TypeScript
- MCP SDK: @modelcontextprotocol/sdk
- API Client: Native fetch API
- Transport: stdio (standard input/output)
Security Notes
- API key is loaded from environment variables (never hardcoded)
- All API communication happens locally (default: localhost:8384)
- No external network requests
- Read-only operations are safe; write operations (scan) require user approval in Claude Code
License
MIT
Authors
- Zdendys (Project Manager)
- Nyara (AI Assistant)
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.