dms-mcp-server
Read-only MCP server that lets AI clients query DMS repositories through a local bridge, supporting tools for health checks, listing connections and items, retrieving item info, and reading documents. Credentials are handled securely via a separate broker.
README
dms-mcp-server
Read-only Model Context Protocol server for DMS repositories exposed by
dms-provider-bridge. Credential resolution is delegated to the local
credential-broker; the MCP server never reads Windows Credential Manager
directly.
MVP tools
bridge_healthlist_connectionslist_itemsget_item_inforead_document
All DMS paths use connection:/path. The server intentionally has no upload,
move, copy, mkdir or delete tools.
Architecture
MCP client --stdio--> dms-mcp-server --HTTP--> dms-provider-bridge --> DMS
|
+----------HTTP--> credential-broker
For a connection path, the MCP server reads the connection auth contract from
the bridge, sends its credential_id to the broker, and passes the resulting
in-memory auth context to the bridge operation. Secrets are not returned in
tool results or written to MCP configuration.
Configuration
Runtime data lives in config/mcp.json, separately from application code:
{
"bridge": {
"url": "http://127.0.0.1:8765",
"minimumVersion": "0.2.0"
},
"broker": { "url": "http://127.0.0.1:8776" },
"runtime": {
"timeoutSeconds": 30,
"maxDocumentBytes": 1048576
}
}
The machine configuration provides the required base document. Optional user
overrides are loaded from %APPDATA%\\DMS MCP\\config\\mcp.local.json and
merged over that base. Set
DMS_MCP_MACHINE_CONFIG_DIR or DMS_MCP_USER_CONFIG_DIR to use other config
directories.
Environment variables remain available as final runtime overrides:
| Variable | Default | Purpose |
|---|---|---|
DMS_BRIDGE_URL |
http://127.0.0.1:8765 |
Local bridge URL |
DMS_BROKER_URL |
http://127.0.0.1:8776 |
Local broker URL |
DMS_MCP_TIMEOUT_SECONDS |
30 |
Upstream HTTP timeout |
DMS_MCP_MAX_DOCUMENT_BYTES |
1048576 |
Maximum document returned to MCP |
DMS_MCP_MIN_BRIDGE_VERSION |
0.2.0 |
Minimum compatible bridge version |
Credential IDs are owned by bridge connection configuration and are never selected by the AI or duplicated in MCP configuration.
Bridge and broker HTTP clients ignore system proxy environment variables. This
keeps local credential resolution and bridge traffic on their configured direct
connections instead of routing them through HTTP_PROXY or ALL_PROXY.
Development
python -m venv .venv
.\.venv\Scripts\pip.exe install -e ".[dev]"
.\.venv\Scripts\python.exe -m pytest
Run the stdio server:
.\.venv\Scripts\dms-mcp-server.exe
Run the read-only live smoke test while bridge and broker are running:
.\.venv\Scripts\python.exe scripts\run_live_smoke.py alfresco edocat
The smoke test exercises all read-only tools. It prints document metadata, size and SHA-256 only; document content is never printed.
Display a bounded tree of DMS folders and files through the MCP server:
.\.venv\Scripts\python.exe scripts\debug_dms.py alfresco edocat --max-depth 2
Optionally verify one document without printing its content:
.\.venv\Scripts\python.exe scripts\debug_dms.py alfresco `
--document "alfresco:/Shared/report.docx"
The debug command prints names and available item metadata. Document
verification prints only MIME type, byte size and SHA-256. Traversal is bounded
by --max-depth, --max-directories and --max-items.
Run the local web inspector to see every MCP request and response side by side:
.\.venv\Scripts\python.exe scripts\web_debug.py
Then open the address configured by inspector.host and inspector.port in
config/mcp.json (default http://127.0.0.1:8780). Command-line --host and
--port values may temporarily override the JSON configuration. The inspector
exposes only the five read-only tools and binds only to localhost. For
read_document, it displays
MIME type, byte size and SHA-256 of the original bytes while omitting document
content. Switch between the raw MCP Response and a clickable UI View for
connections, folders, files and metadata; .. navigates to the parent folder.
Its API accepts only local
Host/Origin values and JSON requests.
Example MCP client configuration:
{
"mcpServers": {
"dms": {
"command": "C:\\Users\\YOUR_USER\\python_projects\\dms-mcp-server\\.venv\\Scripts\\dms-mcp-server.exe",
"env": {
"DMS_BRIDGE_URL": "http://127.0.0.1:8765",
"DMS_BROKER_URL": "http://127.0.0.1:8776"
}
}
}
}
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.