docuware-mcp
A Model Context Protocol (MCP) server that exposes a DocuWare DMS to LLM-based agents through a database-style API. It serves both the current sessionless MCP revision (2026-07-28) and the older handshake-based protocol — each client gets whichever it asks for.
This is an independent project with no affiliation to DocuWare GmbH.
Configuration
Credentials are read from the docuware-client standard environment
variables:
DW_URL=https://dms.example.com
DW_USERNAME=service_account
DW_PASSWORD=<secret>
DW_ORG=<org>
Alternatively, point DW_CREDENTIALS_FILE at a JSON file — useful for
switching between test and production systems, or for keeping secrets
out of shell history:
DW_CREDENTIALS_FILE=/path/to/credentials.json
The file uses the same keys as the environment variables:
{
"url": "https://dms.example.com",
"username": "service_account",
"password": "<secret>",
"organization": "Acme GmbH"
}
organization is optional if the service account belongs to a single
organization. Make sure the file is not world-readable (chmod 600).
For service-to-service deployments, OAuth2 Client Credentials is the
recommended flow — no user account, no browser, no rotating refresh
tokens. Requires a DocuWare "Trusted / Service" App Registration that
provides a client_secret:
DW_URL=https://dms.example.com
DW_CLIENT_ID=<app-registration-id>
DW_CLIENT_SECRET=<secret>
This path is preferred over DW_USERNAME / DW_PASSWORD for unattended
deployments (containers, systemd units, Claude Desktop on a workstation
with secrets injected from a manager). DW_CREDENTIALS_FILE takes
precedence if both are set.
For internal DocuWare installations with self-signed or private-CA
certificates, TLS verification can be disabled with
DW_VERIFY_CERT=false. Do not use this against production systems —
it disables protection against man-in-the-middle attacks.
OAuth2 requires DocuWare 7.10 or later.
Use with an MCP client
By default docuware-mcp speaks MCP over stdio: an MCP client (Claude
Desktop, Claude Code, …) launches it as a subprocess and talks to it
over stdin/stdout. You don't run it yourself — the client does. For
clients that connect over the network instead, see
Serving over HTTP below.
The recommended install path is via uv,
because uvx will fetch and run the package on demand without a global
install. Install uv once (brew install uv on macOS,
curl -LsSf https://astral.sh/uv/install.sh | sh on Linux,
irm https://astral.sh/uv/install.ps1 | iex in PowerShell on Windows),
then add this entry to your client's MCP config:
{
"mcpServers": {
"docuware": {
"command": "uvx",
"args": ["docuware-mcp"],
"env": {
"DW_CREDENTIALS_FILE": "/path/to/credentials.json"
}
}
}
}
The config file lives at:
- Claude Desktop:
~/Library/Application Support/Claude/claude_desktop_config.json(macOS),%APPDATA%\Claude\claude_desktop_config.json(Windows) - Claude Code:
.mcp.jsonin your project root (or runclaude mcp add docuware -- uvx docuware-mcp)
For OpenCode the shape is slightly different —
add to opencode.json (project) or ~/.config/opencode/opencode.json
(user):
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"docuware": {
"type": "local",
"command": ["uvx", "docuware-mcp"],
"environment": {
"DW_CREDENTIALS_FILE": "/path/to/credentials.json"
},
"enabled": true
}
}
}
Restart the client after editing. The docuware server should then
appear in the available-tools list, exposing list_archives,
describe_archive, search, get_document, get_document_text,
and status.
Serving over HTTP
Clients that cannot launch a subprocess — Open WebUI, for example —
connect over the network instead. For those, start the server yourself
with --http:
docuware-mcp --http
It then accepts Streamable HTTP connections on
http://127.0.0.1:8765/mcp. Bind address, port, and path can be
changed with --host, --port, and --path, or the environment
variables DW_MCP_HOST, DW_MCP_PORT, and DW_MCP_PATH.
The HTTP endpoint performs no authentication of its own: anyone who can reach it can query the DocuWare account it is configured with. Keep it on localhost, or put an authenticating reverse proxy in front before exposing it beyond the machine.
Running directly (for debugging)
If you've cloned this repo and want to poke at the server with the MCP Inspector or call it from a script:
docuware-mcp
Speaks MCP over stdio — same protocol the clients above use.
License
BSD-3-Clause.
Metadata
Release files for docuware-mcp 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| docuware_mcp-0.2.0.tar.gz | 13.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| docuware_mcp-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.9 kB
Release files / docuware_mcp-0.2.0.tar.gz
| Download URL | docuware_mcp-0.2.0.tar.gz |
|---|---|
| Size | 13.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2fe1511b9cab74ba456172fed75de1e4639a67aa670f923c1ee67011f755d041
|
|
BLAKE2b-256 checksum How to use checksums |
e81e62a9ca61376e50e80c879e9d9c8a0a3fce88a7f935e50170e35255f08ff3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / docuware_mcp-0.2.0-py3-none-any.whl
| Download URL | docuware_mcp-0.2.0-py3-none-any.whl |
|---|---|
| Size | 15.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fbc0b2c6efba3371c37ee9c3681ecaac52b6ca17015e2ff6aa87ba0ecbc4c8c4
|
|
BLAKE2b-256 checksum How to use checksums |
9c699530714749014ecd90db48d9aa5578bfb4d0e982fae8b030c9c7c2643140
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for docuware-mcp 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.