Add pdf-mcp package (I-CAN-hack/pdf-mcp)
NixOS Configuration CI / Nix Flake Check (push) Failing after 1m9s

MCP server for reading, rendering, and searching PDF files using PyMuPDF.
Exposes get_page_text, get_page_image (render page as PNG), search_text.
Python, so it spawns reliably under the mcp-gateway stdio backend.
This commit is contained in:
hermes-agent
2026-09-09 13:59:41 +00:00
parent 9e26156949
commit 58eb312a77
2 changed files with 40 additions and 0 deletions
+1
View File
@@ -29,5 +29,6 @@
ovhcloud-mcp = pkgs.callPackage ./ovhcloud-mcp/package.nix { };
slskd-mcp = pkgs.callPackage ./slskd-mcp/package.nix { };
yarr = pkgs.callPackage ./yarr/package.nix { };
pdf-mcp = pkgs.callPackage ./pdf-mcp/package.nix { };
# example-mcp-server = pkgs.callPackage ./example-mcp-server/package.nix { };
}
+39
View File
@@ -0,0 +1,39 @@
{
lib,
python3Packages,
fetchFromGitHub,
}:
python3Packages.buildPythonApplication rec {
pname = "pdf-mcp";
version = "0.1.0-unstable-2026-07-30";
src = fetchFromGitHub {
owner = "I-CAN-hack";
repo = "pdf-mcp";
rev = "c430ba664d82b06140f24358310dbf7016b532a1";
hash = "sha256-+wKLOF+IMWKtdNsT84scWoDhSjkvVRvGkZn6ddOP7bY=";
};
pyproject = true;
build-system = with python3Packages; [ hatchling ];
dependencies = with python3Packages; [
mcp
pymupdf
pymupdf4llm
];
doCheck = false;
pythonImportsCheck = [ "pdf_mcp" ];
meta = with lib; {
description = "MCP server for reading, rendering, and searching PDF files (PyMuPDF)";
homepage = "https://github.com/I-CAN-hack/pdf-mcp";
license = licenses.mit;
mainProgram = "pdf-mcp";
platforms = platforms.all;
maintainers = [ ];
};
}