Kiteworks MCP Server Installation & Setup
Get Kiteworks working in your AI assistant in minutes. An administrator enables MCP once for the organization, then each user connects the client they already use: the Claude Desktop Connector, Claude Code or VS Code, or a shared remote server.
Unlimited agent workflows, policy controls, and audit telemetry at no additional cost for the first 6 months. Kiteworks admins can activate it through the admin console.
| I want to… | Deployment mode | Go to |
|---|---|---|
| Enable Kiteworks MCP for my organization (required first step) | Admin console | Configure MCP in the Admin Console |
| Set or verify the API scopes the MCP Server needs | Admin console | API Scopes |
| Connect Kiteworks to Claude Desktop from the connector marketplace | Claude Desktop Connector | Claude Desktop Connector |
| Use Kiteworks from Claude Code or VS Code on my machine | Local STDIO | Local STDIO |
| Deploy a shared MCP server for my team or organization | Remote HTTPS | Remote HTTPS |
| Upgrade an existing installation to 0.9.6 | All modes | Upgrading to 0.9.6 |
Configure MCP in the Admin Console
Start here. Kiteworks MCP is governed by a single fixed OAuth application managed from the Kiteworks admin console. Enabling it is the one required step before anyone can connect. Once it is on, users can start using the Claude Desktop Connector or any other local MCP installation.
Enable Kiteworks MCP
-
Log into the Kiteworks admin consoleSign in as an administrator.
-
Open the Kiteworks MCP settingsGo to Application Setup → Apps and Plugins and select the Kiteworks MCP tab.
-
Enable Kiteworks MCPToggle Kiteworks MCP to enabled and click Save. That's it — users can now start using the Claude Desktop Connector or other local MCP installations.
Optional configuration
The defaults work for most local deployments. Adjust these only if your environment requires it:
- Disable local MCP — turn off the local redirect if you want users to connect only through an MCP server deployed on a remote server.
- Add the remote callback URL — if you run a remote MCP server, add its callback (redirect) URL so the fixed app can complete the OAuth flow for remote clients.
- Configure scopes — adjust the OAuth scopes granted to the fixed app to widen or narrow what connected AI clients can do. The API scopes section below lists every operation the MCP Server uses, in the order the panel shows them, and marks which ones a fresh instance does not grant yet.
API scopes
API scopes set the maximum that can ever be performed through the MCP Server. They are a ceiling, not a grant: nobody working through an AI client can do more than their own Kiteworks permissions already allow.
Recommended configuration. Start with the defaults and add only what you need. Entities marked Yes under Default are granted when you enable Kiteworks MCP. Grant the others only for the tools listed under each entity. A tool whose scope is missing is simply hidden from AI clients. Greyed-out operations exist in the panel but no MCP tool uses them, so leave them off.
| Entity | Default | Create | Read | Update | Delete |
|---|---|---|---|---|---|
Filesdownload_file_to_path read_file_contents get_file_metadata get_file_download_link rename_file move_file copy_file delete_file list_folder_or_file_activity manage_folder_or_file_access | Yes | ● Create | ● Read | ● Update | ● Delete |
Folderslist_root_folders list_folder_contents create_folder rename_folder move_folder delete_folder upload_file_from_path create_file_from_content request_file_upload create_form list_folder_or_file_activity manage_folder_or_file_access | Yes | ● Create | ● Read | ● Update | ● Delete |
Uploads Newupload_file_from_path create_file_from_content create_form | Yes | ● Create | |||
Searchsearch_files_and_folders | Yes | ● Read | |||
Usersget_current_user find_user_by_email search_ldap_users list_my_activity | Yes | Create | ● Read | Update | Delete |
Maillist_emails get_email get_email_counts compose_email send_email get_email_tracking list_email_tracking | Yes | ● Create | ● Read | ● Update | Delete |
Activities Newlist_my_activity | No | ● Read | |||
Shared Mailboxes Newlist_email_tracking | No | ● Read | |||
Adminsearch_users get_user search_audit_log list_shared_mailboxes list_user_profiles get_user_profile list_users_in_profile check_user_profile_mapping create_user reset_user_totp create_shared_mailbox update_user assign_user_profile delete_shared_mailbox update_shared_mailbox_members | No | ● Create | ● Read | ● Update | ● Delete |
Profilescreate_user_profile | No | ● Create | Read | Update | Delete |
RiskPolicieslist_risk_policies | No | Create | ● Read | Update | Delete |
manage_folder_or_file_access).
After you change scopes, users sign in again for them to apply.
Claude Desktop Connector
The quickest way to connect Kiteworks to Claude Desktop. The Kiteworks MCP Server is now available directly in the Claude Desktop connector marketplace — you no longer need to download a binary and upload it manually. The full install, permissions, and configuration walkthrough lives on its own page.
Claude Desktop Connector
Install from the marketplace · Configure permissions · Manage the connection
If your organization has not enabled the connector marketplace, the same integration ships as
a .mcpb native package you can install by hand: download it from the
GitHub releases ↗,
then in Claude Desktop go to your user name → Settings → Extensions → Advanced
Settings, click Install Extension, select the file, and supply your
Kiteworks URL. The Kiteworks sign-in opens in your browser on first use, and the extension
stays signed in across restarts.
Download the Binary
For Local STDIO deployments (Claude Code and VS Code), native binaries for Windows, Linux, and macOS are available from the Kiteworks MCP GitHub repository. Always download the latest release to ensure you have current security patches.
Kiteworks MCP — GitHub Releases
Binaries for Windows, Linux, and macOS · Source code · Changelog
Local STDIO — Claude Code & VS Code
The Local STDIO binary runs on your machine and gives AI agents a direct data channel for uploading and downloading files — capabilities not available in Remote HTTPS mode. Install it once and register it with your MCP client.
Claude Code
Register the binary as an MCP server using the claude mcp add command.
Replace /path/to/kiteworks-mcp with the actual path to the downloaded binary
and https://your.kiteworks.domain with your instance URL.
claude mcp add --transport stdio kiteworks \
/path/to/kiteworks-mcp start https://your.kiteworks.domain
claude mcp add --transport stdio kiteworks ^
C:\Path\To\kiteworks-mcp.exe start https://your.kiteworks.domain
Start Claude Code and type /mcp, then select kiteworks and authenticate in your browser when prompted.
Optional flags
Append these after the start command as needed:
| Flag | Effect |
|---|---|
--allow-dir /path/to/dir | Approve a directory for file transfers. Repeatable — pass it once per directory. Defaults to the MCP client's working directory if omitted. |
--enable-destructive-tools | Enable move and delete operations. Disabled by default as a safety measure — the tools are not registered at all without it. |
--ca-cert /path/to/ca_chain.pem | Trust a custom CA certificate. Required if your Kiteworks instance uses a self-signed or private CA certificate. |
Flags go between start and the instance URL. A typical setup that allows two
directories and turns on move and delete:
claude mcp add --transport stdio kiteworks \
/path/to/kiteworks-mcp start \
--allow-dir ~/Documents \
--allow-dir ~/Downloads \
--enable-destructive-tools \
https://your.kiteworks.domain
File access and path security
File transfers are confined to the directories you approve with --allow-dir.
Inside an approved directory you can reference files three ways: by absolute path, by
home-relative path (~/Documents/report.pdf), or relative to the first approved
directory. Anything outside is refused.
Enforcement is handle-based rather than textual: the server holds each approved directory open
as an operating-system directory handle and the kernel resolves every path component against
it. That makes ../ traversal, symlinks pointing outward, and check-then-open race
conditions fail structurally instead of relying on string inspection. On Windows the
\\?\ and \\.\ prefixes, drive-relative paths, alternate data
streams, and reserved device names are all rejected. If a directory you pass cannot be
opened, the server aborts at startup rather than silently dropping it from the allowlist.
Environment variables
| Variable | Effect |
|---|---|
KW_MCP_ALLOWED_DIRS | Approved directories as a list separated by the platform path separator — : on Linux and macOS, ; on Windows. Useful when you cannot control the launch arguments. --allow-dir takes precedence when both are set. |
GODEBUG=fips140=only | Strict FIPS 140-3 mode. Loads a self-checking cryptographic module restricted to NIST-approved algorithms. |
NODE_EXTRA_CA_CERTS | Set for Claude Code so it trusts a self-signed Remote HTTPS MCP server. Point it at a PEM file containing the complete CA chain. This is separate from --ca-cert, which is about trusting your Kiteworks instance. |
Staying signed in between restarts
In Local STDIO mode the access token is held in memory only, so the server runs a fresh OAuth
flow every time it starts. On a machine you trust, the login subcommand caches the
rotating refresh token in your operating system's encrypted keychain so restarts no longer
prompt:
kiteworks-mcp login --persist-token https://your.kiteworks.domain
In-memory is the default deliberately: it means a stolen disk image carries no usable Kiteworks credential. Opt into persistence only on single-user, trusted machines.
Visual Studio Code
Add Kiteworks as an MCP server in your VS Code settings. See the VS Code MCP Servers Guide ↗ for full documentation. A minimal configuration looks like this:
{
"mcpServers": {
"kiteworks": {
"command": "/path/to/kiteworks-mcp",
"args": [
"start",
"--allow-dir", "/Users/you/Documents",
"https://your.kiteworks.domain"
]
}
}
}
Each flag and its value are separate entries in the args array, and the instance
URL always comes last. Add --enable-destructive-tools or
--ca-cert plus its PEM path the same way, and repeat
--allow-dir for each additional directory.
Remote HTTPS Server
The Remote HTTPS server runs as a centralized service that multiple users connect to via their MCP clients. Deployment is a multi-step process — creating the directory structure, generating cryptographic secrets, placing TLS certificates, writing the environment configuration, and setting up a reverse proxy. The full, up-to-date instructions live in the Kiteworks MCP GitHub repository.
Remote HTTPS Deployment Guide
Directory setup · Secret generation · Docker Compose · systemd · Reverse proxy config
Connecting a client to the remote server
Once the server is running, clients point at its /mcp endpoint and authenticate
with OAuth 2.1 using Dynamic Client Registration — there is no client ID or secret to
distribute. From Claude Code:
claude mcp add --transport http kiteworks https://mcp-server.example.com:8443/mcp
Any generic MCP client needs only those two settings: the server URL and OAuth with Dynamic Client Registration.
NODE_EXTRA_CA_CERTS to a PEM file containing the full chain before starting
Claude Code — otherwise the connection is rejected. Enterprise AI platforms have their own
setup: see
Microsoft Copilot Studio
and
ServiceNow AI Agent Studio.
Upgrading to 0.9.6
Release 0.9.6 makes sign-in reliable and adds email tracking and activity tools. Check these before you upgrade:
- One-time re-authentication. Stored sign-ins move to new keychain entries. After that, the Claude Desktop extension stays signed in across restarts, and a tool call made while signed out opens the sign-in again. There is no separate data-access terms prompt anymore.
- Tool renames. Allow or deny rules and
KW_MCP_ENABLED_TOOLSlists that use old names stop matching. Update them with the rename table. - Per-tool scope enforcement. A tool now appears only when every scope it needs is granted. Grant Activities Read for
list_my_activityand Shared Mailboxes Read forlist_email_tracking. Custom OAuth apps also need Uploads Create, and admin write tools need their own Admin operation. See API scopes. - Persistent storage for Remote HTTPS.
serverefuses to start unlessKW_MCP_STORAGE_TYPE=volumeis set. Client registrations are saved there, so clients keep working after a server restart. - HTTPS-only Kiteworks URL. The Kiteworks URL must use
https://. - FIPS TLS restrictions. A Kiteworks host or proxy with an outdated TLS configuration may fail to connect. Update its TLS configuration, or set
GODEBUG=fips140=offto turn FIPS mode off.
Security Notes
A few behaviors worth knowing before going to production:
- Credentials are never exposed to the LLM. Tokens never enter the AI context window. In Local STDIO mode the token is held in memory only and discarded on exit unless you opt in with
login --persist-token, which caches the rotating refresh token in your OS keychain. In Remote HTTPS mode tokens stay server-side in an encrypted store. - File data is not automatically shared with the LLM. In Local STDIO mode, binary files move over a separate data channel without entering the LLM context. Text files can be loaded into context explicitly.
- File access is confined to approved directories. Transfers are limited to the directories passed with
--allow-dir(or listed inKW_MCP_ALLOWED_DIRS), enforced by the kernel against an open directory handle rather than by string checks. - Destructive tools are off by default. Move and delete tools are not registered unless the server starts with
--enable-destructive-tools, and deletions, member changes, and sending mail each require explicit confirmation on top of that. - Scopes cap what any AI client can attempt. The fixed MCP application's scope grant is instance-wide — see API Scopes above. Within that ceiling, every call is still bounded by the signed-in user's own Kiteworks permissions.
- TLS certificate validation is enforced. The MCP Server validates the TLS certificate of your Kiteworks instance and will abort the connection if it cannot be verified, blocking man-in-the-middle attempts. Use
--ca-certto supply a custom CA chain for self-signed or private CA certificates. - FIPS 140-3 mode can be enabled by setting
GODEBUG=fips140=onlyas an environment variable before starting the server.
Next Steps
With the server installed and connected:
- Claude Desktop Connector → Install and use the Kiteworks connector in Claude Desktop
- Kiteworks Agent Marketplace ↗ — Ready-to-use, governed agents built on the MCP Server
- Available MCP Tools ↗ — Full list of tools exposed to connected LLM applications