Skip to main content
Glama
steveclarke

MCP Printer Server

by steveclarke

list_printers

Discover available printers on your system and check their current status, including whether they're ready to accept print jobs.

Instructions

List all available printers on the system with their status. Returns printer names, states, and whether they're accepting jobs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the list_printers tool. It runs the `lpstat -p -d` command to list all available printers on the system with their status and returns the output as markdown text content.
    async () => { const output = await execCommand("lpstat", ["-p", "-d"]) return { content: [ { type: "text", text: output || "No printers found", }, ], } }
  • Registers the list_printers tool with the MCP server, providing title, description, empty input schema (no parameters required), and the inline handler function.
    server.registerTool( "list_printers", { title: "List Printers", description: "List all available printers on the system with their status. Returns printer names, states, and whether they're accepting jobs.", inputSchema: {}, }, async () => { const output = await execCommand("lpstat", ["-p", "-d"]) return { content: [ { type: "text", text: output || "No printers found", }, ], } } )

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/steveclarke/mcp-printer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server