About subspace-api
subspace-api is an Express API and MCP server providing services for subtype.space and TRMNL users. The README focuses on its TRMNL plugin service, OAuth configuration, and settings required for metro and flight-tracking plugins.
Key features
- 01Provide services for TRMNL plugins
- 02Build with Docker or manually
- 03Configure TRMNL OAuth credentials
- 04Set up WMATA for the metro plugin
- 05Configure the flight-tracking plugin
Use cases
- 01Deploy the TRMNL plugin service
- 02Configure metro arrival predictions and incident data
- 03Configure the flight-tracking plugin
MCP support
The input identifies this project as an MCP server but does not specify the tools or resources it exposes to MCP clients.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEsubspace-trmnl
subspace-trmnl is the service running TRMNL Plugins created by subtype.
This service is provided free of charge to all TRMNL device owners.
Getting Started
With Docker (preferably compose)
Building your own image
docker compose build && docker compose up -d
Pulling from stable releases
docker compose pull && docker compose up -d
Manual build
npm run build && npm run start
Environment Variables
Core (optional)
| Env var | Default | Purpose |
|---|---|---|
PORT | 9595 | Port the server listens on |
LOG_LEVEL | info | Logging verbosity (debug, info, warn, error) |
ACTIVE_VERSION | v1 | API version prefix (not fully implemented) |
TZ | - | Container timezone for log timestamps (e.g. America/New_York) |
PUBLIC_BASE_URL | - | Used to build absolute URLs to serve static resources |
TRMNL plugin settings
These are required if you are running TRMNL plugins (metro or flight tracker).
| Env var | Required | Purpose |
|---|---|---|
TRMNL_CLIENT_ID | Yes | OAuth 2.0 client ID provided by TRMNL for your plugin |
TRMNL_CLIENT_SECRET | Yes | OAuth 2.0 client secret paired with TRMNL_CLIENT_ID |
WMATA_PRIMARY_KEY | For metro plugin | WMATA API key for DC Metro arrival predictions and incidents |
TRMNL_FLIGHTS_CLIENT_ID | For flight plugin | OAuth 2.0 client ID for the TRMNL flight tracker plugin |
TRMNL_FLIGHTS_CLIENT_SECRET | For flight plugin | OAuth 2.0 client secret paired with TRMNL_FLIGHTS_CLIENT_ID |
AERODATABOX_API_KEY | For flight plugin | RapidAPI key for AeroDataBox (live flight status data) |
TRMNL_DB_PATH | No | Path to SQLite database file (default: ./trmnl.sqlite) |
TRMNL_IP_ALLOW_PRIVATE | No | Set to true to bypass TRMNL worker IP allowlist check (useful for local dev) |
Releases
NOTE: Releases are performed by an agent following instructions in CLAUDE.md. It is just easier to let it handle it and perform tag maintenance and cleanup.
All developer updates should be performed in the dev branch. Pull requests should be opened against the current active version (such as v1). Once merged into the active version branch, a tag must be pushed to that branch to "cut" a release.
AI Disclosure
Parts of this project were assisted with Claude Code by having it provide examples for implementation. Some parts of the codebase were refactored by Claude Code suggestion to improve efficiency. Unless noted, the code base was largely written by hand. Some parts of implementing the OAuth 2.0 spec were assisted by LLM. Some parts for the TRMNL Flight Tracker logic regarding calculations were assisted by LLM, as with information display, but not generated out of thin air.
It is subspace's responsibility to examine the output of these LLMs for accuracy, implementation detail, and direction.
Appendix
Code styling (specifically comment styling) is all over the place. It's not an AI artifact, just laziness with Intellisense and having too much fun with /** documentation.
Disclaimer & Fair Use
This flight tracker contains logos and banners of various airlines and aviation operators.
Fair Use Notice: These images are the property of their respective owners (airlines and operators). They are provided here for educational and identification purposes only (e.g., to identify airlines in flight tracking applications).
- This use is considered Fair Use under copyright law as it is non-commercial, transformative (aggregating for identification), and does not impede the owners' ability to profit from their branding.
- The repository does not claim ownership of any trademarks or copyrighted material.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.