npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

terminus-mcp

v0.1.0

Published

MCP server for creating and publishing content to Terminus

Downloads

195

Readme

terminus-mcp

An MCP server for agents that create and publish content to a Terminus instance.

The project targets version 2 of the official Model Context Protocol TypeScript SDK and Node.js 24.2 or newer.

Status

The curated publishing API is implemented and verified against Terminus 0.67.0. See docs/design.md for the API boundary and security model.

The server exposes ten tools:

  • get_display_context, list_screens, get_screen_image, and list_playlists for Terminus discovery;
  • search_screen_docs and read_screen_doc for agent-readable authoring and TRMNL Framework documentation;
  • create_screen and update_screen for complete HTML/CSS screens;
  • save_playlist for complete ordered playlist replacement;
  • assign_playlist for the single allowed device mutation.

It deliberately does not expose authentication, firmware endpoints, deletion, model mutation, raw device credentials, or a generic API proxy.

Installation

Register the server with your MCP host:

{
  "mcpServers": {
    "terminus": {
      "command": "npx",
      "args": ["-y", "terminus-mcp"],
      "env": {
        "TERMINUS_URL": "http://terminus.example:2300",
        "TERMINUS_LOGIN": "[email protected]",
        "TERMINUS_PASSWORD": "..."
      }
    }
  }
}

See Configuration for the environment variables and the note on credential handling.

Development

Development uses Vite+ (npm install -g vite-plus):

git clone https://github.com/gjermundgaraba/terminus-mcp.git
cd terminus-mcp
vp install
vp run ready

Run the development server over stdio:

vp run dev

Or run its native Streamable HTTP endpoint:

MCP_HOST=0.0.0.0 MCP_PORT=8002 vp run dev:http

Build and run the compiled server:

vp pack
vp run start
# or
MCP_HOST=0.0.0.0 MCP_PORT=8002 vp run start:http

Standard output is reserved for MCP messages. Diagnostics use standard error.

Configuration

The MCP host must provide:

  • TERMINUS_URL: Base URL of one Terminus instance.
  • TERMINUS_LOGIN: Login email for the Terminus account.
  • TERMINUS_PASSWORD: Login password for the Terminus account.

The HTTP entrypoint additionally accepts:

  • MCP_HOST: Listen address; defaults to 127.0.0.1.
  • MCP_PORT: Listen port; defaults to 8002.
  • MCP_ALLOWED_HOSTS: Optional comma-separated additional Host and Origin hostnames. terminus-mcp and loopback names are allowed by default.

Credentials will never be accepted as MCP tool arguments, returned in tool results, or intentionally written to logs. Inject them with the MCP host's secret-management facility instead of committing them to its configuration.

For remote MCP clients, use http://<host>:8002/mcp. /healthz provides a container health check. The HTTP endpoint has no application-level authentication and must remain on an access-controlled internal network.

Verification

vp run ready runs formatting, linting, strict type checks, protocol-level tests through the official MCP client, and a production build.

To verify against a configured Terminus instance:

vp run verify:live

The live check exercises all ten tools. It creates a temporary screen and playlist, assigns the device's existing playlist back to itself, and deletes the temporary objects before exiting.

License

MIT