MCP server
An agent that writes tests often needs a real file to test with. loremfile runs as a Model Context Protocol server, so the agent can ask for one.
It can find a fixture, read its URL and measured properties, and check a file it already has. The server returns URLs and metadata. It never returns file bytes. The agent, or your test, fetches the URL.
The server talks over stdio. It reads the manifest once per process from loremfile.dev.
How do I set it up?
With Node, the npm package runs the server:
{ "mcpServers": { "loremfile": { "command": "npx", "args": ["-y", "loremfile", "mcp"] } } }
With Python, uvx runs the PyPI package without an
install:
{ "mcpServers": { "loremfile": { "command": "uvx", "args": ["loremfile", "mcp"] } } }
Both are the same server, tool for tool. The two packages ship one tool definition file. It
speaks protocol 2026-07-28 and 2025-11-25, so clients of either era work.
What can the agent ask for?
There are three tools. All three are read-only.
| Tool | Arguments | Returns |
|---|---|---|
list_fixtures |
format, tag, max_bytes, limit, offset |
One page of published fixtures, each with path, url, format, mime, bytes, tags and description, plus total and next_offset. |
describe_fixture |
path |
One fixture's manifest entry: url, mime, bytes, sha256, size_class, tags, description, props and added_in. |
verify_file |
path, file |
Whether a local file is the published one: ok, changed or missing, with both hashes and sizes. The file is read to hash it and goes nowhere. |
Is it listed anywhere?
Yes. The server is listed in the
MCP Registry
as io.github.kumarprabhashanand/loremfile. The listing points at the npm and PyPI packages
above.
No agent? The same files are a URL away. See getting started.