Exposes Synergy/DE documentation as tools and resources for searching topics.
Synergy/DE MCP Server
A read-only Model Context Protocol (MCP) server that exposes Synergy/DE documentation as tools and resources, making it easy to search, retrieve, and browse documentation topics from Cursor and other MCP clients.
Features
- Full-text search across Synergy/DE documentation with relevance scoring
- Topic retrieval with chunked content optimized for LLM consumption
- Related topics navigation (previous, next, parent, and related links)
- Section browsing to discover topics by category
- Version support for different Synergy/DE documentation versions
- Intelligent caching to minimize network requests and improve performance
- Online and local documentation support (hybrid mode available)
- MCP Resources for direct topic and section access in Cursor
Prerequisites
- Node.js 18.0.0 or higher (provides built-in
fetchAPI for HTTP requests) - npm or pnpm package manager
- Cursor (for MCP integration) or another MCP-compatible client
Installation
Clone this repository:
git clone https://github.com/h0ck3ystyx/synergyde-mcp.git cd synergyde-mcpInstall dependencies:
npm install # or pnpm installBuild the project:
npm run buildConfigure environment variables (optional):
cp .env.example .env # Edit .env with your preferences
Configuration
The server can be configured via environment variables. All variables are optional and have sensible defaults.
Environment Variables
| Variable | Description | Default | Required |
|---|---|---|---|
SYNERGYDE_DOC_BASE_URL |
Base URL for online documentation | https://www.synergex.com/docs/ |
No |
SYNERGYDE_DOC_DEFAULT_VERSION |
Default documentation version to use | "latest" |
No |
SYNERGYDE_LOCAL_DOC_PATH |
Path to local documentation directory | (none) | No |
SYNERGYDE_CACHE_DIR |
Directory for caching parsed topics | ./cache |
No |
LOG_LEVEL |
Logging level: debug, info, warn, or error |
info |
No |
Configuration Details
SYNERGYDE_DOC_BASE_URL: The base URL for the Synergy/DE documentation site. Should end with a trailing slash (automatically added if missing).SYNERGYDE_DOC_DEFAULT_VERSION: The default version to use when no version is specified in tool calls. Common values:"latest","v111","v112", etc.SYNERGYDE_LOCAL_DOC_PATH: If provided, enables local documentation support. The path must be readable and point to a directory containing local documentation files. When set, the server operates in "hybrid" mode, preferring local docs but falling back to online docs if a topic isn't found locally.SYNERGYDE_CACHE_DIR: Directory where parsed topics are cached on disk. The directory will be created automatically if it doesn't exist. Cached topics are stored as JSON files keyed by version and topic ID.LOG_LEVEL: Controls the verbosity of logging. Usedebugfor detailed information during development,infofor normal operation,warnfor warnings only, orerrorfor errors only.
Example `.env` File
# Use online documentation with latest version
SYNERGYDE_DOC_BASE_URL=https://www.synergex.com/docs/
SYNERGYDE_DOC_DEFAULT_VERSION=latest
# Cache directory (relative to project root)
SYNERGYDE_CACHE_DIR=./cache
# Logging level
LOG_LEVEL=info
Usage
Running the Server
The server uses stdio transport and is designed to be launched by MCP clients:
npm start
The server will:
- Initialize configuration
- Connect to stdio transport
- Wait for MCP requests from clients
Note: The server is intended to be run by MCP clients (like Cursor), not directly. Running it manually will cause it to wait for input on stdin.
Cursor MCP Configuration
Add the server to your Cursor MCP configuration. The configuration file location depends on your setup:
- Global config:
~/.cursor/mcp.json(macOS/Linux) or%APPDATA%\Cursor\mcp.json(Windows) - Project config:
.cursor/mcp.jsonin your project root
Basic Configuration
{
"mcpServers": {
"synergyde-docs": {
"command": "node",
"args": ["/absolute/path/to/synergyde-mcp/dist/server.js"],
"env": {
"SYNERGYDE_DOC_DEFAULT_VERSION": "latest"
}
}
}
}
Advanced Configuration with Local Docs
{
"mcpServers": {
"synergyde-docs": {
"command": "node",
"args": ["/absolute/path/to/synergyde-mcp/dist/server.js"],
"env": {
"SYNERGYDE_DOC_BASE_URL": "https://www.synergex.com/docs/",
"SYNERGYDE_DOC_DEFAULT_VERSION": "latest",
"SYNERGYDE_LOCAL_DOC_PATH": "/path/to/local/docs",
"SYNERGYDE_CACHE_DIR": "/path/to/cache",
"LOG_LEVEL": "info"
}
}
}
}
Important: Use absolute paths for the server executable and any fil
Tools (3)
search_documentationFull-text search across Synergy/DE documentation with relevance scoring.get_topicTopic retrieval with chunked content optimized for LLM consumption.browse_sectionsDiscover documentation topics by category or section.Environment Variables
SYNERGYDE_DOC_BASE_URLBase URL for online documentationSYNERGYDE_DOC_DEFAULT_VERSIONDefault documentation version to use (e.g., latest, v111)SYNERGYDE_LOCAL_DOC_PATHPath to local documentation directory for hybrid modeSYNERGYDE_CACHE_DIRDirectory for caching parsed topicsLOG_LEVELLogging level: debug, info, warn, or errorConfiguration
{
"mcpServers": {
"synergyde-docs": {
"command": "node",
"args": ["/absolute/path/to/synergyde-mcp/dist/server.js"],
"env": {
"SYNERGYDE_DOC_DEFAULT_VERSION": "latest"
}
}
}
}