Python Alfresco MCP Server is a comprehensive Model Context Protocol server that connects to Alfresco Content Services, enabling seamless interactions with documents and folders through search capabilities, document management functions, and metadata operations. It supports multiple transport protocols and integrates with various MCP clients.
UV is a modern Python package manager written in Rust that offers improved performance:
# Install UV (provides both uv and uvx commands)
# Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Verify installation
uv --version
uvx --version
# Install and run with UVX
uvx python-alfresco-mcp-server --help
# Install with pip
pip install python-alfresco-mcp-server
# Install with pipx (isolated environment)
pipx install python-alfresco-mcp-server
Set up your Alfresco connection using environment variables or a .env file:
Environment Variables:
# Linux/Mac
export ALFRESCO_URL="http://localhost:8080"
export ALFRESCO_USERNAME="admin"
export ALFRESCO_PASSWORD="admin"
export ALFRESCO_VERIFY_SSL="false"
# Windows PowerShell
$env:ALFRESCO_URL="http://localhost:8080"
$env:ALFRESCO_USERNAME="admin"
$env:ALFRESCO_PASSWORD="admin"
$env:ALFRESCO_VERIFY_SSL="false"
Or create a .env file:
ALFRESCO_URL=http://localhost:8080
ALFRESCO_USERNAME=admin
ALFRESCO_PASSWORD=admin
ALFRESCO_VERIFY_SSL=false
# Run with STDIO transport (default)
uvx python-alfresco-mcp-server
# HTTP transport (for web services/MCP Inspector)
uvx python-alfresco-mcp-server --transport http --host 127.0.0.1 --port 8003
# SSE transport (for real-time streaming)
uvx python-alfresco-mcp-server --transport sse --host 127.0.0.1 --port 8001
For UVX installation:
{
"command": "uvx",
"args": ["python-alfresco-mcp-server", "--transport", "stdio"]
}
For traditional installations:
{
"command": "python-alfresco-mcp-server",
"args": ["--transport", "stdio"]
}
npm install -g @modelcontextprotocol/inspector
uvx python-alfresco-mcp-server --transport http --port 8003
npx @modelcontextprotocol/inspector --config mcp-inspector-http-uvx-config.json --server python-alfresco-mcp-server
When using with Claude Desktop, mention Alfresco and what you want to do:
Upload a document: "Please create a file called 'test_doc.txt' in the repository shared folder with this content: 'This is a test document created via MCP.'"
Search for documents: "With Alfresco, please search for documents containing 'test' in their content"
Check out and modify a document: "Check out the document I just uploaded, then check it back in with an updated version"
Browse folders: "List documents and folders in the shared folder"
Get repository information: "Show me information about the Alfresco repository"
You can customize the MCP server behavior with these environment variables:
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "python-alfresco-mcp-server" '{"command":"python","args":["-m","alfresco_mcp_server.fastmcp_server"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"python-alfresco-mcp-server": {
"command": "python",
"args": [
"-m",
"alfresco_mcp_server.fastmcp_server"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"python-alfresco-mcp-server": {
"command": "python",
"args": [
"-m",
"alfresco_mcp_server.fastmcp_server"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect