SD Elements MCP Server
Provides SD Elements API integration for security and compliance management.
Warning This project is a work in progress. Use at your own risk.
SD Elements MCP Server
MCP server for SD Elements API v2 (STDIO only). Use it from MCP clients to manage projects, surveys, countermeasures, scans, reports, diagrams, and users.
Quick start
npm ci
npm run start
Required configuration
SDE_HOST:https://your-sdelements-instance.comSDE_API_KEY:your-api-key-here
HTTP setup
Use HTTP mode when you want a long-running server instead of STDIO.
npm run start:http
- Credentials: do not set
SDE_HOSTorSDE_API_KEYin the server process. The HTTP server refuses to start if either is set (includingSDE_API_KEY). Each client request must provide credentials instead. - Instance allowlist (required): set
MCP_SDE_INSTANCE_ALLOWLISTto a comma-separated list of allowed SDE hosts (for examplehttps://sde.example.com,https://sde2.example.com). Requests withSDE_HOSToutside this list are rejected. - Port/host: configure with
MCP_PORT(default3000) andMCP_HOST(default127.0.0.1). - Per-request auth: send
SDE_HOSTandSDE_API_KEYas headers (orsde_host/sde_api_keyin the initialize request body).
HTTPS unsafe mode
By default, the server rejects non-HTTPS SDE_HOST values. For local/dev instances that only serve HTTP, set:
SDE_ALLOW_INSECURE_HTTP=true
This allows http:// hosts. Use only in trusted environments.
Example initialize request:
curl -sS http://127.0.0.1:3000/mcp \
-H "Content-Type: application/json" \
-H "SDE_HOST: https://your-sdelements-instance.com" \
-H "SDE_API_KEY: your-api-key-here" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"example","version":"0.0.0"}}}'
Client setup (Cursor + Claude Desktop)
Both clients use the same mcpServers object — the only difference is where you paste it.
- Cursor: add this under MCP settings (Cursor “MCP Servers” /
mcpServers). - Claude Desktop: add this to
claude_desktop_config.json.
Pick one execution style:
- Option A (recommended): run from the GitHub repo via
npx(builds on install)
{
"mcpServers": {
"sdelements": {
"command": "npx",
"args": ["-y", "github:sdelements/sde-mcp"],
"env": {
"SDE_HOST": "https://your-sdelements-instance.com",
"SDE_API_KEY": "your-api-key-here"
}
}
}
}
- Option B: run from a local checkout (build output)
{
"mcpServers": {
"sdelements": {
"command": "node",
"args": ["/absolute/path/to/sde-mcp/dist/main.js"],
"env": {
"SDE_HOST": "https://your-sdelements-instance.com",
"SDE_API_KEY": "your-api-key-here"
}
}
}
}
HTTP client setup (Cursor)
Start the HTTP server (npm run start:http) and set MCP_SDE_INSTANCE_ALLOWLIST as described above. Then configure Cursor with an HTTP MCP server entry:
{
"mcpServers": {
"sdelements-http": {
"url": "http://127.0.0.1:3000/mcp",
"headers": {
"SDE_HOST": "https://your-sdelements-instance.com",
"SDE_API_KEY": "your-api-key-here"
}
}
}
}
Build
npm run build
Local checkout build (for Option B)
npm ci
npm run build
Tools
- Toolset selection: default is compact. Set
SDE_TOOLSET=fullto expose the legacy toolset. - Note: diagrams and reporting tools are not exposed.
- Compact tools (default):
project,application,business_unit,project_survey,project_countermeasures,library_search- plus Generic:
test_connection,api_request
- Legacy tools (when
SDE_TOOLSET=full):- Projects:
list_projects,get_project,create_project,update_project,create_project_from_code - Library search:
library_search(supports countermeasures, threats, components, weaknesses, profiles, risk policies, answers, countermeasure statuses, countermeasure how-tos) - Applications:
list_applications,get_application,create_application,update_application - Business units:
list_business_units,get_business_unit,create_business_unit,update_business_unit - Countermeasures:
list_countermeasures,get_countermeasure,update_countermeasure,add_countermeasure_note,get_task_status_choices - Surveys:
get_project_survey,get_survey_answers_for_project,update_project_survey,find_survey_answers,set_project_survey_by_text,add_survey_answers_by_text,remove_survey_answers_by_text,commit_survey_draft,add_survey_question_comment - Scans:
list_scan_connections,scan_repository,get_scan_status,list_scans - Users:
list_users,get_user,get_current_user - Library:
library_search - Generic:
test_connection,api_request
- Projects:
Notes
- Missing env vars: tools will fail if
SDE_HOST/SDE_API_KEYaren’t set.
Related Servers
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Midjourney MCP
An MCP server for generating images with the Midjourney API.
Ollama
Integrates with Ollama to run local large language models. Requires a running Ollama instance.
Xcode
Tools for Xcode project management, building, testing, archiving, code signing, and iOS development utilities.
MCP Documentation Server
An AI-powered documentation server for code improvement and management, with Claude and Brave Search integration.
Jules
Jules async coding agent - run autonomous tasks using Jules
TypeScript MCP
A TypeScript-specialized server providing advanced code manipulation and analysis capabilities.
Apidog tests MCP
Adds possibility to work with testing management via MCP
MCP Proxy Server
Aggregates multiple MCP resource servers into a single interface with stdio/sse support.
Stack AI
Build and deploy AI applications using the Stack AI platform.
Web3 Playground & Sandbox - Learn, Develop, Test MCP Servers + Toolkit SDK
Free Solidity compiler & Web3 IDE with interactive tutorials. Learn blockchain development, deploy smart contracts to 8+ chains (Ethereum, Polygon, Base, Arbitrum, Solana). Templates for tokens, NFTs, DeFi, DAOs. Monaco Editor, AI assistance, WCAG accessible. Remix alternative. Gas optimization, MetaMask integration, open source. Beginner-friendly. MCP toolkit.