MCP server implementation for Qexo CMS
Project description
Qexo MCP Server
An MCP (Machine Communication Protocol) server implementation for interacting with Qexo CMS, allowing seamless integration with Qexo's content management capabilities.
Overview
Qexo MCP Server provides a bridge between MCP clients and the Qexo CMS API, enabling programmatic management of content through a standardized interface. This server implementation simplifies the process of working with Qexo CMS by providing a set of well-defined tools for common operations.
Features
- Content Management: Create, read, update, and delete blog posts and files
- Post Management: Save and manage draft posts
- Search Capability: Search through existing posts
- Metadata Handling: Manage categories and tags for posts
- Full Integration: Complete integration with the Qexo API
- Commit Messages: Support for custom commit messages when saving changes
Installation
Using pip
pip install qexo-mcp
From Source
- Clone the repository:
git clone https://github.com/yuzhi-jiang/mcp-servers.git
cd mcp-servers/qexo-mcp
- Install the package:
pip install -e .
Configuration
Qexo MCP Server requires API credentials to connect to your Qexo instance. You can provide these through environment variables:
- Create a
.envfile in your project directory:
api_url=https://your-qexo-instance.com
api_token=your-api-token
- Alternatively, set the environment variables directly:
# Linux/macOS
export api_url=https://your-qexo-instance.com
export api_token=your-api-token
# Windows
set api_url=https://your-qexo-instance.com
set api_token=your-api-token
Running the Server
qexo-mcp
This will start the MCP server, which will listen for incoming requests.
Available Tools
Post Management
-
get_posts(s: str = None) -> List[dict]- Get all posts, optionally filtered by search string
- Parameters:
s: Optional search string
-
save_or_update_post(title: str, content: str, categories: List[str]=[], tags: List[str]=[], commitchange: str=None) -> dict- Save or update a blog post
- Parameters:
title: Post titlecontent: Post contentcategories: List of categoriestags: List of tagscommitchange: Optional commit message
-
delete_post(title: str) -> dict- Delete a post
- Parameters:
title: Post title
File Management
-
save_or_update_file(file: str, content: str) -> dict- Save or update a file
- Parameters:
file: File pathcontent: File content
-
new_file(file: str, content: str) -> dict- Create a new file
- Parameters:
file: File pathcontent: File content
-
delete_file(file: str) -> dict- Delete a file
- Parameters:
file: File path
Usage Examples
mcp config
{
"mcpServers": {
"qexo-mcp-server": {
"name": "qexo",
"description": "",
"isActive": true,
"command": "uvx",
"args": [
"qexo-mcp"
],
"env": {
"api_url": "https://your-qexo-instance.com",
"api_token": "your-api-token"
}
}
}
}
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
- yuzhi.jiang yefengzhiming@gmail.com
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qexo_mcp-0.1.3.tar.gz.
File metadata
- Download URL: qexo_mcp-0.1.3.tar.gz
- Upload date:
- Size: 23.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.29
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b1c92503ffc1bf9496fa24904c04aa098a0cbbc6b01a952cab5deb5c00b1c22
|
|
| MD5 |
a2349f45de238f85a30a1da426fe25ae
|
|
| BLAKE2b-256 |
c4546ba4ad4ba08edb788249f051e38239da634022a8117bf8b736675a2551b2
|
File details
Details for the file qexo_mcp-0.1.3-py3-none-any.whl.
File metadata
- Download URL: qexo_mcp-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.29
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d50f780b49a26dbbafacc06323ff8e0df636cfdafda36997d37b957464f9a106
|
|
| MD5 |
e161c0bc6d7263e7f20849629ef08ed9
|
|
| BLAKE2b-256 |
6722652f467533448fbc3ed012544eefb8d531715b8ca75b88981ebcba24af09
|