mcp-pagure
The mcp-pagure server provides tools for interacting with Pagure git forges (e.g., src.fedoraproject.org, pagure.io) to manage projects, files, pull requests, and commits.
list_projects– Browse and search available projects/packages in a given namespace (e.g., rpms, container, modules) with pagination supportget_project_info– Retrieve detailed metadata about a specific Pagure projectfork_project– Fork an existing project into your own namespaceget_file– View the contents of a file (e.g., spec files) from a repository at a specific branchlist_branches– List all branches available in a repositorylist_pull_requests– List pull requests for a project, filtered by status (Open, Merged, Closed, or all)get_pull_request– View detailed information about a specific pull request, including its commentscomment_on_pr– Add a review comment to a pull requestmerge_pull_request– Merge an approved pull request into the target branchclose_pull_request– Close a pull request without merging itget_commit– Retrieve detailed information about a specific commit using its hash
Provides tools for interacting with Fedora's package source repository (dist-git) at src.fedoraproject.org, enabling package browsing, spec file operations, and pull request workflow management.
Supports repository operations on Pagure-based git forges, including browsing branches and tags, and viewing file contents from repository trees.
Click on "Deploy 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., "@mcp-pagure list open pull requests for the kernel package"
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.
mcp-pagure
MCP server for Pagure integration (src.fedoraproject.org, pagure.io, and other Pagure instances).
Overview
This MCP server provides tools for interacting with Pagure git forges, including Fedora's package source repository (dist-git) at src.fedoraproject.org.
Related MCP server: forgejo-mcp
Features
Package/repository browsing and management
Spec file operations (view, diff)
Patch management (list, view)
Pull Request workflow (list, view, comment, merge)
Git operations (commits, diffs, branches)
Multi-instance support (src.fedoraproject.org, pagure.io, self-hosted)
Installation
pip install mcp-pagureConfiguration
Requires Pagure API token from your Pagure instance:
src.fedoraproject.org: https://src.fedoraproject.org/settings#nav-api-tab
pagure.io: https://pagure.io/settings#nav-api-tab
export PAGURE_API_TOKEN="your-token-here"
export PAGURE_BASE_URL="https://src.fedoraproject.org" # optional, defaults to src.fp.oUsage
Stdio Mode (Local)
mcp-pagureHTTP Mode (Remote)
mcp-pagure --transport http --port 8805With Claude CLI
claude mcp add --transport sse \
--header "Authorization: Bearer $PAGURE_API_TOKEN" \
pagure https://your-server.com/mcp/pagureTools
Repository Operations
list_projects- Browse available projects/packagesget_project_info- Get project metadatafork_project- Fork a project to your namespace
File Operations
get_file- View file content from repolist_branches- List repository brancheslist_tags- List repository tags
Pull Request Workflow
list_pull_requests- List PRs (open/closed/merged/all)get_pull_request- View PR details and commentscomment_on_pr- Add review commentsmerge_pull_request- Merge approved PRclose_pull_request- Close PR without merging
Git Operations
(No Git/commit tools available - Pagure API doesn't support commit listing)
Development
git clone https://github.com/lemenkov/mcp-pagure
cd mcp-pagure
python -m venv venv
source venv/bin/activate
pip install -e ".[dev]"
pytestLicense
Apache-2.0
Author
Peter Lemenkov lemenkov@gmail.com
Available Tools
11 toolsclose_pull_requestA
Close a pull request without merging.
Args: project: Project name pr_id: Pull request ID number to close namespace: Project namespace (default: rpms)
Returns: JSON string with close result
Inputs: project (required), pr_id (required), namespace. Returns: result
comment_on_prC
Add a comment to a pull request.
Args: project: Project name pr_id: Pull request ID number comment: Comment text to add namespace: Project namespace (default: rpms)
Returns: JSON string with comment creation result
Inputs: project (required), pr_id (required), comment (required), namespace. Returns: result
fork_projectC
Fork a Pagure project to your namespace.
Args: project: Project name to fork namespace: Project namespace (default: rpms)
Returns: JSON string with fork creation result
Inputs: project (required), namespace. Returns: result
get_commitB
Get detailed information about a specific commit.
Args: project: Project name commit_hash: Commit hash (full or short) namespace: Project namespace (default: rpms)
Returns: JSON string with commit details
Inputs: project (required), commit_hash (required), namespace. Returns: result
get_fileB
Get file content from a Pagure repository.
Args: project: Project name filename: File path (e.g., 'python3.spec', 'sources') branch: Branch name (default: rawhide) namespace: Project namespace (default: rpms)
Returns: File content as string
Inputs: project (required), filename (required), branch, namespace. Returns: result
get_project_infoB
Get detailed information about a Pagure project.
Args: project: Project name (e.g., 'python3', 'kernel') namespace: Project namespace (default: rpms)
Returns: JSON string with project details
Inputs: project (required), namespace. Returns: result
get_pull_requestC
Get detailed information about a specific pull request.
Args: project: Project name pr_id: Pull request ID number namespace: Project namespace (default: rpms)
Returns: JSON string with PR details including comments
Inputs: project (required), pr_id (required), namespace. Returns: result
list_branchesB
List all branches in a Pagure repository.
Args: project: Project name namespace: Project namespace (default: rpms)
Returns: JSON string with list of branch names
Inputs: project (required), namespace. Returns: result
list_projectsB
List Pagure projects/packages.
Args: namespace: Project namespace (rpms, container, modules, etc.) pattern: Search pattern for project name page: Page number (default: 1) per_page: Results per page (default: 20)
Returns: JSON string with project list and pagination info
Inputs: namespace, pattern, page, per_page. Returns: result
list_pull_requestsB
List pull requests for a Pagure project.
Args: project: Project name namespace: Project namespace (default: rpms) status: PR status - Open, Merged, Closed, or all (default: Open) page: Page number (default: 1) per_page: Results per page (default: 20)
Returns: JSON string with PR list and pagination info
Inputs: project (required), namespace, status, page, +1 more. Returns: result
merge_pull_requestC
Merge an approved pull request.
Args: project: Project name pr_id: Pull request ID number to merge namespace: Project namespace (default: rpms)
Returns: JSON string with merge result
Inputs: project (required), pr_id (required), namespace. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool has a clearly distinct purpose targeting specific resources and actions in the Pagure domain. For example, close_pull_request, merge_pull_request, and comment_on_pr all operate on pull requests but perform different operations, while get_commit, get_file, and get_project_info retrieve different types of information without overlap.
All tools follow a consistent verb_noun naming pattern using snake_case throughout. The verbs are clear and descriptive (close, comment, fork, get, list, merge), and the nouns precisely identify the target resources (pull_request, project, commit, file, branches).
With 11 tools, this server is well-scoped for a Pagure integration. The count covers essential operations for repository management, pull request handling, and project information retrieval without being overwhelming or insufficient for the domain.
The toolset provides strong coverage for core Pagure workflows including project listing/info, file/commit access, branch management, and full pull request lifecycle (list, get, comment, close, merge). A minor gap exists in creating or updating resources like projects or pull requests, but agents can work effectively with the available read and modify operations.
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
MCP server for siGit (sigit.si): browse repos, search code, manage PRs/issues, web search.
Create, deploy, and operate MCP servers directly from your GitHub repositories.
Related MCP Servers
- FlicenseAqualityNot gradedmaintenanceMCP server for managing Git operations on local repositories, allowing users to list repositories, get and create tags, list commits, push tags, and refresh repositories through a standardized interface.63-
- AlicenseNot gradedqualityDmaintenanceAn MCP server for managing your repositories on Forgejo/Gitea server.70Mozilla Public 2.0
- FlicenseNot gradedqualityCmaintenanceUnified MCP server for Git forge management across GitHub, GitLab, Gitea, and Bitbucket, enabling repository, issue, PR, and CI/CD operations via CLI tools and APIs.-
- AlicenseBqualityFmaintenanceMCP server for interacting with Gitea, enabling issue and PR management, repository browsing, file reading, and safe git command execution.1195 npm1MIT