Files
mcp-servers/packages/pdf-mcp/package.nix
T
hermes-agent b732981049
NixOS Configuration CI / Nix Flake Check (push) Failing after 17s
pdf-mcp: point at hermes-agent fork with bbox crop param
Use the hermes-agent/pdf-mcp fork (commit 356e476) which adds a bbox
crop parameter to get_page_image so it can render just a figure region
as a small PNG.
2026-09-09 15:00:29 +00:00

40 lines
869 B
Nix

{
lib,
python3Packages,
fetchFromGitHub,
}:
python3Packages.buildPythonApplication rec {
pname = "pdf-mcp";
version = "0.1.1-unstable-2026-07-30";
src = fetchFromGitHub {
owner = "hermes-agent";
repo = "pdf-mcp";
rev = "356e476d1dd0d2d9eb866df7c6f82a21018351c8";
hash = "sha256-whfXjMQIUt94VEeo6Fdvdr96WV3HNNNVuL1gtkt4g7M=";
};
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://gitea.bueso.eu/hermes-agent/pdf-mcp";
license = licenses.mit;
mainProgram = "pdf-mcp";
platforms = platforms.all;
maintainers = [ ];
};
}