mcpField
S
subspace-api

subspace-api

Local
subtype.spaceDeveloper Tools0Updated 2w ago

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

  1. 01Provide services for TRMNL plugins
  2. 02Build with Docker or manually
  3. 03Configure TRMNL OAuth credentials
  4. 04Set up WMATA for the metro plugin
  5. 05Configure the flight-tracking plugin

Use cases

  1. 01Deploy the TRMNL plugin service
  2. 02Configure metro arrival predictions and incident data
  3. 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.

mcp.json · Universal config
{
"mcpServers": {
"subspace-api": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"compose"
]
}
}
}
Run commanddocker run -i --rm compose

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
ocicompose

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

ko-fi

subspace-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 varDefaultPurpose
PORT9595Port the server listens on
LOG_LEVELinfoLogging verbosity (debug, info, warn, error)
ACTIVE_VERSIONv1API 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 varRequiredPurpose
TRMNL_CLIENT_IDYesOAuth 2.0 client ID provided by TRMNL for your plugin
TRMNL_CLIENT_SECRETYesOAuth 2.0 client secret paired with TRMNL_CLIENT_ID
WMATA_PRIMARY_KEYFor metro pluginWMATA API key for DC Metro arrival predictions and incidents
TRMNL_FLIGHTS_CLIENT_IDFor flight pluginOAuth 2.0 client ID for the TRMNL flight tracker plugin
TRMNL_FLIGHTS_CLIENT_SECRETFor flight pluginOAuth 2.0 client secret paired with TRMNL_FLIGHTS_CLIENT_ID
AERODATABOX_API_KEYFor flight pluginRapidAPI key for AeroDataBox (live flight status data)
TRMNL_DB_PATHNoPath to SQLite database file (default: ./trmnl.sqlite)
TRMNL_IP_ALLOW_PRIVATENoSet 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

Markdown supported

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.