Alfresco MCP Server
This server provides a comprehensive MCP interface to Alfresco Content Services, enabling AI clients to search, manage, and analyze documents and folders. Key capabilities include:
Search:
Full-text search using AFTS query language.
Advanced search with sorting and filtering.
Metadata-based search.
CMIS SQL queries for complex searches.
Document Management:
Upload and download documents.
Checkout, checkin (supports major/minor versions and comments), and cancel checkout.
Delete documents/folders (optionally permanent or to trash).
Get and update metadata properties.
Folder Operations:
Browse repository structure.
Create new folders.
Repository Info:
Retrieve version, edition, installed modules, and system status.
Extras:
A
search_and_analyzeprompt for guided search and content analysis.
Mentioned as a related project (Box MCP Server) for similar content management functionality
Provides an HTTP transport option for testing the MCP server, with API documentation available at /docs endpoint
Uses Pydantic v2 models for type safety in the server implementation
Built as a Python-based server for Alfresco Content Services, requiring Python 3.8+
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Alfresco MCP Serversearch for quarterly reports from last year"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Python Alfresco MCP Server v1.2 ๐
Model Context Protocol Server for Alfresco Content Services
A full featured MCP server for Alfresco in search and content management areas. It provides the following tools: full text search (content and properties), advanced search, metadata search, CMIS SQL like search, upload, download, checkin, checkout, cancel checkout, create folder, folder browse, delete node, and get/set properties. Also has a tool for getting repository status/config (also a resource). Has one prompt example. Built with FastMCP 3. Features complete documentation, examples, and config for various MCP clients (Claude Desktop, MCP Inspector, references to configuring others).
๐ What's New in v1.2
Alfresco authentication methods: connect via basic, ticket, or OAuth2/OIDC (
ALFRESCO_AUTH_METHOD+ALFRESCO_OAUTH2_*, backed bypython-alfresco-api1.2.1) โ see Authentication.Optional MCP transport authentication: secure the MCP server itself with an OAuth2 bearer token (
MCP_TRANSPORT_AUTH=true), validated against your IdP's JWKS (HTTP/SSE transports; stdio unaffected).FastMCP 3: upgraded to
fastmcp>=3.4.5,<4(transport auth usesJWTVerifier).download_documentcustom folder: optionaldestination_dir(default~/Downloads) โ thanks @jeremie-lesage (#1).Packaging: switched to the hatchling build backend.
Requires python-alfresco-api โฅ 1.2.1 (OAuth2/OIDC auth + OAuth2 service-account
displayNamefix).
Related MCP server: Confluence MCP
๐ What's New in v1.1
Modular Architecture & Enhanced Testing
FastMCP: v1.0 had FastMCP 2.0 implementation that had all tools implementations in the fastmcp_server.py file
Code Modularization in v1.1: Split monolithic single file into organized modular structure with separate files
Directory Organization: Organized into
tools/search/,tools/core/,resources/,prompts/,utils/directoriesEnhanced Testing: Complete test suite transformation - 143 tests with 100% pass rate
Client Configuration Files: Added dedicated Claude Desktop and MCP Inspector configuration files
Live Integration Testing: 21 Alfresco server validation tests for real-world functionality
Python-Alfresco-API: python-alfresco-mcp-server v1.2.0 requires python-alfresco-api >= 1.2.1
๐ Complete Documentation
Documentation & Examples
๐ Complete Documentation: 10 guides covering setup to deployment
๐ก Examples: 6 practical examples from quick start to implementation patterns
๐ง Configuration Management: Environment variables, .env files, and command-line configuration
**๐๏ธ Setup instruction for use with MCP client
Learning Resources
๐ Quick Start Guide: 5-minute setup and first operations
๐ค Claude Desktop Setup: Complete Claude Desktop configuration for users and developers
๐ง Client Configurations: Setup guide for Cursor, Claude Code, and other MCP clients
๐ Examples Library: Implementation patterns and examples
๐ Guides covering setup, deployment, and usage:
๐ Documentation Hub - Complete navigation and overview
๐ Quick Start Guide - 5-minute setup and first operations
๐ฆ Installation with pip and pipx - Traditional Python package installation methods
๐ค Claude Desktop Setup - Complete Claude Desktop configuration for users and developers
๐ง Client Configurations - Setup guide for Cursor, Claude Code, and other MCP clients
๐ MCP Inspector Setup - Development and testing with MCP Inspector
๐ API Reference - Complete tool and resource documentation
โ๏ธ Configuration Guide - Development to deployment
๐งช Testing Guide - Quality assurance and test development
๐ ๏ธ Troubleshooting Guide - Problem diagnosis and resolution
๐ Features
Content Management and Search Tools
Search Tools:
Full Text Search: Basic content search with wildcard support (search_content)
Advanced Search: AFTS query language with date filters, sorting, and field targeting
Metadata Search: Property-based queries with operators (equals, contains, date ranges)
CMIS Search: SQL like queries for complex content discovery
Document Lifecycle: Upload, download, check-in, checkout, cancel checkout
Version Management: Create major/minor versions with comments
Folder Operations: Create folders, delete folder nodes
Property Management: Get and set document/folder properties and names
Node Operations: Delete nodes (documents and folders) (trash or permanent)
Repository Info: (Tool and Resource) Returns repository status, version and whether Community or Enterprise, and module configuration
MCP Architecture
FastMCP 3 Framework: Modern, high-performance MCP server implementation
Multiple Transports:
STDIO (direct MCP protocol) - Default and fastest
HTTP (RESTful API) - Web services and testing
SSE (Server-Sent Events) - Real-time streaming updates
Authentication: Basic, ticket, or OAuth2/OIDC to Alfresco, plus optional OAuth2 bearer to secure the MCP transport itself โ see Authentication
Type Safety: Full Pydantic v2 models
In-Memory Testing: Client testing with faster execution
Configuration: Environment variables, .env files
Alfresco Integration
Works with Alfresco Community (tested) and Enterprise editions
๐ Requirements
Python 3.10+
Alfresco Content Services (Community or Enterprise)
Note: The
python-alfresco-api >= 1.2.1dependency is automatically installed withpython-alfresco-mcp-server
๐ ๏ธ Installation
Install Python
You need to have Python 3.10+ installed for the sections below. If not, download the latest 3.13.x version from:
UV/UVX Setup (Recommended)
UV is a modern Python package manager written in Rust that provides both uv (package manager) and uvx (tool runner). Much faster than pip due to its compiled nature and optimized dependency resolution.
# 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
# Or via pip if you prefer
pip install uv
# Verify installation (both commands should work)
uv --version
uvx --versionUV Reference Links:
UV Installation Guide - Official installation instructions and platform-specific options
UV Documentation - Complete UV documentation, guides, and advanced usage
Option A: UVX - Modern Tool Runner (Recommended for Users)
UVX is UV's tool runner - similar to pipx but faster and more modern. Automatically handles isolation and global availability:
# Install python-alfresco-mcp-server with uvx (after UV/UVX setup above)
uvx python-alfresco-mcp-server --help
# This tests that installation worked - UVX automatically installs packages on first use!Why UVX? UVX combines the benefits of pipx (isolated environments + global availability) with UV's Rust-based speed and modern dependency resolution. It automatically installs packages on first use.
Option B: UV - Modern Package Manager (Recommended for Development)
UV is a modern Python package manager written in Rust that handles everything automatically. Much faster than pip due to its compiled nature and optimized dependency resolution.
# Install and run from PyPI (fastest for users)
uv tool install python-alfresco-mcp-server
uv tool run python-alfresco-mcp-server --help # Tests that installation worked
# Or install from source (for development)
git clone https://github.com/stevereiner/python-alfresco-mcp-server.git
cd python-alfresco-mcp-server
uv run python-alfresco-mcp-server --help # Tests that installation workedOption C: Traditional Methods (pip and pipx)
For traditional Python package management approaches, see the Installation with pip and pipx.
Note: You still need to configure your MCP client (Claude Desktop, MCP Inspector, etc.) with the appropriate configuration. See the MCP Client Setup and Use section below for client configuration details.
Source Installation (For Development)
For development or access to latest features:
# 1. Clone the repository
git clone https://github.com/stevereiner/python-alfresco-mcp-server.git
cd python-alfresco-mcp-server
# 2. UV handles everything automatically - run immediately!
uv run python-alfresco-mcp-server --help # Tests that installation worked
# Or install dependencies explicitly for development:
uv sync # Basic dependencies
uv sync --extra dev # With development tools
uv sync --extra test # With testing tools
uv sync --extra all # Everything
# Or an editable install into the active virtual environment (pip-style):
uv pip install -e .4. Configure Alfresco Connection
The examples below use HTTP Basic auth. Alfresco also supports ticket and OAuth2/OIDC (
ALFRESCO_AUTH_METHOD+ALFRESCO_OAUTH2_*), and you can optionally secure the MCP transport with an OAuth2 bearer (MCP_TRANSPORT_AUTH) โ see the Authentication section for all methods.
Option 1: 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"
# Windows Command Prompt
set ALFRESCO_URL=http://localhost:8080
set ALFRESCO_USERNAME=admin
set ALFRESCO_PASSWORD=admin
set ALFRESCO_VERIFY_SSL=falseOption 2: .env file (recommended - cross-platform):
# Copy sample-dot-env.txt to .env and customize
# Linux/macOS
cp sample-dot-env.txt .env
# Windows
copy sample-dot-env.txt .env
# Edit .env file with your settings
ALFRESCO_URL=http://localhost:8080
ALFRESCO_USERNAME=admin
ALFRESCO_PASSWORD=admin
ALFRESCO_VERIFY_SSL=falseNote: The
.envfile is not checked into git for security. Usesample-dot-env.txtas a template.
๐ See Configuration Guide for complete setup options
Alfresco Installation
If you don't have an Alfresco server installed you can get a docker for the Community version from Github
git clone https://github.com/Alfresco/acs-deployment.gitMove to Docker Compose directory
cd acs-deployment/docker-composeEdit community-compose.yaml
Note: you will likely need to comment out activemq ports other than 8161
ports:
- "8161:8161" # Web Console
#- "5672:5672" # AMQP
#- "61616:61616" # OpenWire
#- "61613:61613" # STOMPStart Alfresco with Docker Compose
docker-compose -f community-compose.yaml up๐ Usage
MCP Server Startup
With UVX (Recommended - Automatic isolation and global availability):
# Run MCP server with STDIO transport (default)
uvx python-alfresco-mcp-server
# HTTP transport for web services (matches 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 8001With UV (For development or source installations):
# Run MCP server with STDIO transport (default)
uv run python-alfresco-mcp-server
# HTTP transport for web services (matches MCP Inspector)
uv run python-alfresco-mcp-server --transport http --host 127.0.0.1 --port 8003
# SSE transport for real-time streaming
uv run python-alfresco-mcp-server --transport sse --host 127.0.0.1 --port 8001With Traditional Methods (pip/pipx):
See the Installation with pip and pipx for pip and pipx usage instructions.
MCP Client Setup and Use
Python-Alfresco-MCP-Server was tested with Claude Desktop which is recommended as an end user MCP client. Python-Alfresco-MCP-Server was also tested with MCP Inspector which is recommended for developers to test tools with argument values.
๐ค Claude Desktop for Windows (tested) and MacOS (not tested)
๐ Complete Setup Guide: Claude Desktop Setup Guide
๐ฅ Download Claude Desktop (Free and Pro versions):
Download Claude Desktop - Official Anthropic download page
Available for Windows and macOS only (no Linux version)
Free tier includes full MCP support and Claude Sonnet 4 access with limits, older Claude models (Claude Opus 4 only in Pro)
๐ง Claude Desktop Configuration by Installation Method:
The Claude Desktop configuration differs based on how you installed the MCP server:
1. UVX (Recommended - Modern tool runner):
{
"command": "uvx",
"args": ["python-alfresco-mcp-server", "--transport", "stdio"]
}Sample Config Files (in
claude-desktop-configs/):UVX automatically handles isolation and global availability
Fastest and most modern approach
2. UV (Development or source installations):
{
"command": "uv",
"args": ["run", "python-alfresco-mcp-server", "--transport", "stdio"],
"cwd": "C:\\path\\to\\python-alfresco-mcp-server"
}Sample Config Files (in
claude-desktop-configs/):Uses
uv runwithcwdpointing to your project directoryUV automatically finds and uses the
.venvfrom the project directoryWorks for both source installations and after
uv tool install
3. Traditional Methods (pipx/pip):
For traditional installation methods, see the Installation with pip and pipx which covers:
pipx:
claude-desktop-config-pipx-windows.json/claude-desktop-config-pipx-macos.jsonpip: Manual venv path configuration
๐ Tool-by-Tool Permission System: Claude Desktop will prompt you individually for each tool on first use. Since this MCP server has 15 tools, you may see up to 15 permission prompts if you use all features. For each tool, you can choose:
"Allow once" - Approve this single tool use only
"Always allow" - Approve all future uses of this specific tool automatically (recommended for regular use)
This tool-by-tool security feature ensures you maintain granular control over which external tools can be executed.
๐ก๏ธ Virus Scanner Note: If you have virus checkers like Norton 360, don't worry if you get a "checking" message once for pip, pipx, uv, uvx, or python-alfresco-mcp-server.exe - this is normal security scanning behavior.
Using the Tools:
Chat naturally about what you want to do with documents and search
Mention "Alfresco" to ensure the MCP server is used (e.g., "In Alfresco...")
Use tool-related keywords - mention something close to the tool name
Follow-up prompts will know the document from previous context
Example 1: Document Management
Upload a simple text document: "Please create a file called 'claude_test_doc-25 07 25 101 0 AM.txt' in the repository shared folder with this content: 'This is a test document created by Claude via MCP.' description 'Test document uploaded via Claude MCP'"
Update properties: "Set the description property of this document to 'my desc'"
Check out the document
Cancel checkout
Check out again
Check in as a major version
Download the document
Upload a second document from "C:\1 sample files\cmispress.pdf"
Note: Claude will figure out to use base64 encoding for the first upload on a second try
Example 2: Search Operations
"With Alfresco please test all 3 search methods and CMIS query:"
Basic search for "txt" documents, return max 10
Advanced search for documents created after 2024-01-01, return max 25
Metadata search for documents where cm:title contains "test", limit to 50
CMIS search to find all txt documents, limit to 50
More Examples: Create Folder, Browse Folders, Get Repository Info
"Create a folder called '25 07 25 01 18 am' in shared folder"
"List docs and folders in shared folder" (will use -shared-)
"Can you show me what's in my Alfresco home directory?" (will use browse_repository -my-)
"Get info on Alfresco" (will use repository_info tool)
Chat Box Buttons
Use Search and tools button (two horizontal lines with circles icon) in the chat box and choose "python-alfresco-mcp-server" - this allows you to enable/disable all tools or individual tools
Click the + Button โ "Add from alfresco" for quick access to resources and prompts
Search and Analyze Prompt:
Provides a form with query field for full-text search
Analysis types: summary, detailed, trends, or compliance
Generates template text to copy/paste into chat for editing
Repository Info Resource (and Tool):
Provides status information in text format for viewing or copying
Examples:
See
prompts-for-claude.mdfor examples testing the tools
๐ MCP Inspector (Development/Testing)
๐ Setup Guide: Complete MCP Inspector setup and connection instructions in MCP Inspector Setup Guide
๐ฅ Install MCP Inspector:
Prerequisites: Requires Node.js 18+ - Download from nodejs.org
Install Command:
npm install -g @modelcontextprotocol/inspectorOr run directly:
npx @modelcontextprotocol/inspector(no global install needed)Purpose: Web-based tool for testing MCP servers and individual tools with custom parameters
Working Method (Recommended):
1. Start MCP Server with HTTP transport:
# With UVX (recommended)
uvx python-alfresco-mcp-server --transport http --port 8003
# With UV (development)
uv run python-alfresco-mcp-server --transport http --port 8003
# Traditional methods - see Traditional Installation Guide2. Start MCP Inspector with config:
UVX Installation (Recommended) โ configs in mcp-inspector-configs/:
# Start with stdio transport
npx @modelcontextprotocol/inspector --config mcp-inspector-configs/mcp-inspector-stdio-uvx-config.json --server python-alfresco-mcp-server
# Start with http transport
npx @modelcontextprotocol/inspector --config mcp-inspector-configs/mcp-inspector-http-uvx-config.json --server python-alfresco-mcp-serverUV Installation (Development):
# From project directory
npx @modelcontextprotocol/inspector --config mcp-inspector-configs/mcp-inspector-stdio-uv-config.json --server python-alfresco-mcp-server # stdio transport
npx @modelcontextprotocol/inspector --config mcp-inspector-configs/mcp-inspector-http-uv-config.json --server python-alfresco-mcp-server # http transportTraditional Methods (pipx/pip):
See the Installation with pip and pipx for pipx and pip configuration options.
3. Open browser with pre-filled token:
Use the URL provided in the output (includes authentication token)
Example:
http://localhost:6274/?MCP_PROXY_AUTH_TOKEN=<token>This step applies to all installation methods (uv, uvx, pip, pipx)
This approach avoids proxy connection errors and provides direct authentication.
๐ง Other MCP Clients
For Cursor, Claude Code, and other MCP clients:
๐ Complete Setup Guide: Client Configuration Guide
๐ ๏ธ Available Tools (15 Total)
๐ Search Tools (4)
Tool | Description | Parameters |
| Search documents and folders |
|
| Advanced search with filters |
|
| Search by metadata properties |
|
| CMIS SQL queries |
|
๐ ๏ธ Core Tools (11)
Tool | Description | Parameters |
| Browse repository folders |
|
| Get repository information | None |
| Upload new document |
|
| Download document content |
|
| Create new folder |
|
| Get node metadata |
|
| Update node metadata |
|
| Delete document/folder |
|
| Check out for editing |
|
| Check in after editing |
|
| Cancel checkout/unlock |
|
๐ See API Reference for detailed tool documentation
๐ Available Resources
Repository Information
Resource | Description | Access Method |
| Get comprehensive repository information including version, edition, license details, installed modules, and system status | Available as both MCP resource and tool |
The repository_info resource provides:
Repository Details: ID, edition (Community/Enterprise), version information
License Information: Issued/expires dates, remaining days, license holder, entitlements
System Status: Read-only mode, audit enabled, quick share, thumbnail generation
Installed Modules: Up to 10 modules with ID, title, version, and installation state
๐ See API Reference for detailed resource documentation
๐ฏ Available Prompts
Search and Analyze Prompt
Prompt | Description | Parameters |
| Interactive form for guided content search and analysis |
|
The Search and Analyze Prompt provides:
Interactive Form: User-friendly interface with query input field
Analysis Options: Choose from summary, detailed analysis, trends, or compliance reporting
Template Generation: Creates copyable template text for chat conversations
Query Assistance: Helps users structure effective search queries
Multiple Search Types: Integrates with all 4 search tools (content, advanced, metadata, CMIS)
๐ See API Reference for detailed prompt documentation
๐ Authentication
Set ALFRESCO_AUTH_METHOD to one of basic (default), ticket, or oauth2. All three
are handled by the python-alfresco-api auth
utilities and passed to ClientFactory.
Basic โ HTTP Basic with username/password (simplest; fine for local/testing over HTTPS):
ALFRESCO_AUTH_METHOD=basic
ALFRESCO_USERNAME=admin
ALFRESCO_PASSWORD=adminTicket โ logs in once to /authentication/versions/1/tickets, then sends the ticket as
Authorization: Basic base64(<ticket>) so the password isn't transmitted on every request (the
ticket can expire/be revoked):
ALFRESCO_AUTH_METHOD=ticket
ALFRESCO_USERNAME=admin
ALFRESCO_PASSWORD=adminOAuth2 (Bearer / OIDC) โ presents a Bearer token to Alfresco's REST API. Requires Alfresco's
built-in identity-service subsystem configured against an OIDC IdP (e.g. Keycloak / Alfresco
Identity Service). Alfresco Community 23.2+ ships this subsystem โ it's config-only in
alfresco-global.properties (no Acosix/AMP needed). Two modes:
client_credentials (service account โ the MCP server fetches + refreshes the token):
ALFRESCO_AUTH_METHOD=oauth2
ALFRESCO_OAUTH2_CLIENT_ID=<client-id>
ALFRESCO_OAUTH2_CLIENT_SECRET=<client-secret>
ALFRESCO_OAUTH2_TOKEN_ENDPOINT=https://<keycloak>/realms/<realm>/protocol/openid-connect/token
ALFRESCO_OAUTH2_GRANT_TYPE=client_credentialspre-obtained token (e.g. a specific user's token โ content access follows that user's ACLs):
ALFRESCO_AUTH_METHOD=oauth2
ALFRESCO_OAUTH2_CLIENT_ID=<client-id>
ALFRESCO_OAUTH2_ACCESS_TOKEN=<access-token>
ALFRESCO_OAUTH2_REFRESH_TOKEN=<refresh-token> # optional; enables auto-refreshโ ๏ธ Prefer a user token for content operations.
client_credentialsauthenticates as the Keycloak service account (e.g.service-account-<client-id>) โ a JIT Alfresco user with no display name and only default ACLs. Alfresco then returnscreatedByUser/modifiedByUserwithout the (spec-required)displayName, which can break clients that parse node responses. For real content work, use the pre-obtained token mode above with a user's token โ obtain one with a password grant and paste it intoALFRESCO_OAUTH2_ACCESS_TOKEN/ALFRESCO_OAUTH2_REFRESH_TOKEN:curl -X POST <token-endpoint> \ -d grant_type=password -d client_id=<id> -d client_secret=<secret> \ -d username=admin -d password=adminThat way responses carry the real display name and the user's actual permissions. (As of python-alfresco-api โฅ 1.2.x the client also defaults a missing
displayNameto the user id, so the service-account path no longer crashes โ but a user token still gives correct names and ACLs.)
Note: this is data-source auth (how the MCP server authenticates to Alfresco), separate from securing the MCP transport itself. On the Alfresco side, configure
identity-service(see the Alfresco docs foridentity-service.auth-server-url/.realm/.resource/.credentials.secret);client_credentialsauthenticates as the service account, while a user's token scopes to that user.
Securing the MCP transport (OAuth2 bearer)
Separately from data-source auth, you can require callers of the MCP server to present an OAuth2
bearer token. This uses FastMCP's JWT verifier and applies to the HTTP/SSE transports only
(stdio ignores it). Set MCP_TRANSPORT_AUTH=true; RS256 tokens are validated against your OIDC IdP's
JWKS, so only genuine IdP-signed tokens are accepted:
MCP_TRANSPORT_AUTH=true
MCP_AUTH_JWKS_URI=http://host.docker.internal:8091/realms/alfresco/protocol/openid-connect/certs
# MCP_AUTH_ISSUER=https://<your-idp>/realms/<realm> # optional; the MCP SDK requires HTTPS here
# MCP_AUTH_AUDIENCE=<aud> # optionalRun it and the endpoint rejects unauthenticated calls:
MCP_TRANSPORT_AUTH=true python -m alfresco_mcp_server.fastmcp_server --transport http --port 8009
# no token -> 401
# Authorization: Bearer <valid-keycloak-token> -> 200MCP Inspector: run the HTTP inspector config, set the server URL to http://localhost:8009/mcp/,
and add an Authorization: Bearer <token> header (obtain the token out-of-band from your IdP โ e.g.
curl -X POST .../token -d grant_type=client_credentials -d client_id=... -d client_secret=...).
Clients must acquire the token themselves; FastMCP validates it but does not issue tokens.
The MCP SDK requires the issuer URL to be HTTPS (localhost excepted). With a local http Keycloak, leave
MCP_AUTH_ISSUERunset โ the JWKS signature check still gates access; add a strict issuer in production behind HTTPS.
๐ง Configuration Options
Environment Variable | Default | Description |
|
| Alfresco server URL |
|
| Auth method: |
|
| Username (basic/ticket) |
|
| Password (basic/ticket) |
| โ | OAuth2 client id (oauth2) |
| โ | OAuth2 client secret (oauth2) |
| โ | OAuth2 token endpoint (oauth2) |
|
|
|
| โ | Pre-obtained access token (optional, oauth2) |
| โ | Refresh token (optional, oauth2) |
|
| Verify SSL certificates |
|
| Request timeout (seconds) |
|
| FastAPI host |
|
| FastAPI port |
|
| Require OAuth2 bearer to call the MCP server (HTTP/SSE only) โ see Securing the MCP transport |
| Keycloak certs | IdP JWKS endpoint used to validate bearer tokens |
| โ | Optional strict issuer check (must be HTTPS) |
| โ | Optional audience check |
|
| Logging level |
|
| Max upload size (bytes) |
โ๏ธ See Configuration Guide for deployment options
๐๏ธ Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ MCP Clients โ
โ Claude Desktop โ MCP Inspector โ Cursor โ Claude โ
โ Code โ n8n โ LangFlow โ Custom MCP Client App โ
โโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ stdio/HTTP/SSE
โโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ FastMCP 2.0 MCP Server โ
โ โโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโ โ
โ โ MCP Tools โ MCP โ HTTP/SSE API โ โ
โ โ (15 total) โ Resources โ โ โ
โ โ โ MCP Prompts โ โ โ
โ โโโโโโโโโโโโโโโดโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ python-alfresco-api
โโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Alfresco Content Services โ
โ (Community/Enterprise Edition) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ๐งช Testing & Quality
Test Suite Overview
143 Total Tests: 100% passed - Coverage of all functionality
122 Unit Tests: 100% passed - Core functionality validated with mocking (FastMCP 2.0, tools, coverage)
21 Integration Tests: 100% passed - Live server testing (search, upload, download, document lifecycle)
Integration Tests: Automated end-to-end testing covering all core document lifecycle scenarios
Performance Validated: Search <1s, concurrent operations, resource access
Coverage Report (Post-Cleanup)
Overall Coverage: 51% (1,829 statements tested)
FastMCP 2.0 Core: Well tested with comprehensive unit coverage
Configuration Module: 93% coverage - Fully tested
Package Initialization: 100% coverage (5/5 lines) - Complete
Overall Project: 51% coverage of comprehensive codebase
Run Tests
# Run full test suite
pytest
# Run with coverage report
pytest --cov=alfresco_mcp_server --cov-report=term-missing
# Run specific test categories
pytest -m "unit" # Unit tests only
pytest -m "fastmcp" # FastMCP 2.0 tests
pytest -m "integration" # Integration tests (requires Alfresco)๐งช See Testing Guide for detailed testing strategies
๐งช Test Categories and Execution
The project includes 4 levels of testing:
๐ Unit Tests (122 tests) - Fast, mocked, isolated component testing
๐ Integration Tests (21 tests) - Live Alfresco server testing
๐ Comprehensive Tests - Automated core document lifecycle scenarios
๐ Coverage Tests - Edge cases and error path coverage
๐งช Development
Setup Development Environment
git clone <repository>
cd python-alfresco-mcp-server
# UV handles everything automatically - no manual venv setup needed!
uv sync --extra dev # Install with development tools
uv sync --extra test # With testing tools
uv sync --extra all # Everything
# Run immediately to test that installation worked
uv run python-alfresco-mcp-server --help
# Install python-alfresco-api for local development (if needed)
uv add --editable ../python-alfresco-apiTraditional Development Setup:
See the Installation with pip and pipx for pip-based development setup.
๐ก Examples
Real-world implementation patterns from beginner to enterprise:
๐ก Examples Library - Complete navigation and learning paths
๐ Quick Start - 5-minute introduction and basic operations
๐ Document Lifecycle - Complete process demonstration
๐ Transport Examples - STDIO, HTTP, and SSE protocols
โก Batch Operations - High-performance bulk processing
๐ก๏ธ Error Handling - Resilience patterns
๐ Examples Summary - Overview and statistics
๐ค Contributing
Fork the repository
Create a feature branch (
git checkout -b feature/new-feature)Commit your changes (
git commit -m 'Add new feature')Push to the branch (
git push origin feature/new-feature)Open a Pull Request
๐ License
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.
๐ Related Projects and References
Hyland Alfresco - Content management platform (Enterprise and Community editions)
python-alfresco-api - The underlying Alfresco API library
FastMCP 3 - Modern framework for building MCP servers
FastMCP Documentation - Complete FastMCP framework documentation and guides
Model Context Protocol - Official MCP specification and documentation
Playbooks.com MCP List - Python Alfresco MCP Server listing
PulseMCP.com MCP List - Python Alfresco MCP Server listing
Glama.ai MCP List - Glama Alfresco list including Python Alfresco MCP Server listing
MCPMarket.com MCP List - Python Alfresco MCP Server listing
๐โโ๏ธ Support
๐ Documentation: Complete guides in
./docs/๐ก Examples: Implementation patterns in
./examples/๐งช Testing: Quality assurance in
./docs/testing_guide.md๐ MCP Inspector: Development testing in
./docs/mcp_inspector_setup.md๐ ๏ธ Troubleshooting: Problem solving in
./docs/troubleshooting.md๐ Issues: GitHub Issues
๐ MCP server built with python-alfresco-api and FastMCP 2.0
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI models to interact with SourceSync.ai's knowledge management platform for managing documents, ingesting content from various sources, and performing semantic searches.25371ISC
- AlicenseAqualityFmaintenanceA Model Context Protocol server that enables AI assistants to interact with Confluence content, supporting operations like retrieving, searching, creating, and updating pages and spaces.912MIT
- AlicenseAqualityDmaintenanceA comprehensive Model Context Protocol server that integrates Elasticsearch search with file operations, document validation, and version control to transform AI assistants into powerful knowledge management systems.2727MIT
- Alicense-qualityDmaintenanceModel Context Protocol server that integrates with Atlassian Confluence and Jira, enabling AI assistants to search, create, and update content in these platforms through natural language interactions.1MIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoโฆ
A Model Context Protocol server for Wix AI tools
MCP (Model Context Protocol) server for Appwrite
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/stevereiner/python-alfresco-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server