com.files/python-mcp
Securely give LLMs controlled access to real-world operations inside your Files.com environment
★ 2MITfilesystems
Install
Config snippet generator goes here (5 client tabs)
README
# Files.com MCP Server
Files.com MCP allows your AI model, like ChatGPT or Claude, to use Files.com.
Files.com is the cloud-native, next-gen MFT, SFTP, and secure file-sharing platform that replaces brittle legacy servers with one always-on, secure fabric. Automate mission-critical file flows—across any cloud, protocol, or partner—while supporting human collaboration and eliminating manual work.
With universal SFTP, AS2, HTTPS, and 50+ native connectors backed by military-grade encryption, Files.com unifies governance, visibility, and compliance in a single pane of glass.
## Introduction
Modern AI models like ChatGPT and Claude are no longer just answering questions—they’re taking action. With Files.com MCP, you can securely give LLMs controlled access to real-world operations inside your Files.com environment.
Whether it's uploading, downloading, querying folders, or managing users, MCP enables your AI agent to interact with your Files.com infrastructure as if it were an extension of your team—without compromising on security, auditability, or control.
### What Is MCP?
Model Context Protocol (MCP) is a structured interface that lets Large Language Models call real APIs as part of their workflow. Think of it as a way to “hand tools” to the LLM—where the tools are real, authenticated functions from your Files.com environment.
When integrated via MCP, your LLM can:
- Transfer files between cloud and on-prem systems
- Query folders or file metadata
- Create and manage users
- Automate workflows like archival or sharing
- And much more
MCP turns the LLM from a passive assistant into an active file operations agent.
### What is Files.com?
Files.com is the modern platform for secure file transfer, automation, and storage integration. Used by thousands of enterprises, Files.com connects cloud apps, on-prem systems, and human workflows—all through a single, powerful interface.
With robust APIs, native protocol support (SFTP, FTPS, AS2, and more), and enterprise-grade access controls, Files.com is built to move your files—reliably, securely, and at scale.
### Common Use Cases
*AI Assistants for Operations Teams:* Let your internal chatbot fetch or archive files on request.
*Automated LLM Workflows:* Build AI agents that react to incoming support requests, then retrieve or upload the necessary files from your environment.
*Developer Copilots:* Enable your dev-focused LLMs to create users, provision folders, or debug via real-time file access.
### Important Information
Large Language Models perform best when their toolset is focused. If you're integrating with Files.com MCP and noticing inconsistent tool usage, your LLM may be overloaded with too many available functions.
Most LLM clients allow you to selectively enable or disable tools exposed through MCP. For best results, only include the specific tools your agent needs for its task. This reduces ambiguity and improves the model’s ability to pick the right operation every time.
### Installation Into Your LLM
Each LLM client has its own method for installing an MCP, and they typically provide specific instructions. Many clients follow a pattern similar to Claude, so our Claude example is a great starting point if you’re working with one of those.
For LLMs that require a more detailed or technical setup, our MCP is implemented in Python and available on PyPI: https://pypi.org/project/files-com-mcp/
If your LLM client needs you to supply execution details for our MCP, we recommend using `uvx`, as demonstrated in the Claude example. This approach ensures a smooth, reproducible setup with minimal effort.
### Using with Claude
To install into Claude you have to add JSON to the `claude_desktop_config.json` file
An official tutorial can found here: https://modelcontextprotocol.io/quickstart/user#2-add-the-filesystem-mcp-server
To add the Files.com MCP, use the Claude Config JSON below (be sure to change the FILES_COM_API_KEY value)
#### uv Required
These examples require `uv` which is a popular modern environment manager for running isolated python tools. You will need to install it first. Using uvx is a huge improvement over older Python environment setup methods. It is simple, runs smoothly, and eliminates the need for manual configuration or unnecessary complexity.
#### Claude Config
```
{
"mcpServers": {
"Files.com": {
"type": "stdio",
"command": "uvx",
"args": [
"files-com-mcp"
],
"env": {
"FILES_COM_API_KEY": "CHangeME"
}
}
}
}
```
## Authentication
There are two ways to authenticate: API Key authentication and Session-based authentication.
### Authenticate with an API Key
Authenticating with an API key is the recommended authentication method for most scenarios, and is
the method used in the examples on this site.
To use an API Key, first generate an API key from the [web
interface](https://www.files.com/docs/sdk-and-apis/api-keys) or [via the API or an
SDK