Skip to main content
Glama
mcp-rest-api-server

mcp-rest-api-server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
API_KEYNoAPI key for the upstream API. Defaults to `sandbox-demo-key` for the sandbox. Required once `API_BASE_URL` is set.
LOG_LEVELNoLog level: `debug`, `info`, `warn`, `error`, or `silent`.info
API_BASE_URLNoUpstream origin. Defaults to the embedded sandbox if unset. Required for a real API.
MCP_HTTP_HOSTNoHTTP bind host.127.0.0.1
MCP_HTTP_PORTNoHTTP bind port.8787
MCP_READ_ONLYNoSet to `false` to register write tools.true
API_AUTH_STYLENoAuth style: `bearer`, `api-key`, or `both`.bearer
API_KEY_HEADERNoHeader used for `api-key` and `both` auth styles.x-api-key
API_TIMEOUT_MSNoPer-attempt timeout in milliseconds.10000
MCP_HTTP_TOKENNoBearer token required on `/mcp` when set.
API_MAX_RETRIESNoExtra attempts after the first.3
API_RETRY_MAX_MSNoRetry cap in milliseconds, including `Retry-After`.8000
API_RETRY_BASE_MSNoBackoff base in milliseconds. Jitter is full.200
API_RATE_LIMIT_RPSNoToken bucket refill rate.10
API_RATE_LIMIT_BURSTNoBurst size shared by the process.20

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This MCP server wraps a REST API. With no API_BASE_URL it serves the bundled Harborline sandbox, which is fictional project-ops data (projects, tasks, contacts). The server is in read-only mode. Write tools are not registered. Do not invent a way to mutate data. List tools accept limit and cursor. Pass nextCursor back as cursor. Omit cursor for the first page. Never invent cursors or ids; call a list tool first. Resources harborline://workspace/summary, harborline://contract, and harborline://projects/{projectId} are snapshots. Prompts project-status-brief and client-update-email load live data. If a call fails, use the error code. Do not retry unauthorized or validation errors with the same input. The API key is configured outside the chat. Never ask the user to paste it, and never echo it.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}
completions
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_workspace_summaryA

Counts of Harborline projects, tasks, and contacts, including tasks by status. Read-only.

list_projectsA

List Harborline projects one page at a time. Pass nextCursor back as cursor for the next page.

get_projectB

Fetch one Harborline project by id, for example prj_northline.

list_tasksA

List tasks. Filter by projectId, status, or assigneeId. Pages use cursor and limit.

get_taskA

Fetch one task by id.

list_contactsA

List contacts. Optional q matches name, email, company, or role. Pages use cursor and limit.

get_contactB

Fetch one contact by id.

Prompts

Interactive templates invoked by user choice

NameDescription
project-status-briefDraft a status brief from a live Harborline project and its tasks.
client-update-emailDraft a short client update email from a live project. Tone can be plain, warm, or formal.

Resources

Contextual data attached and managed by the client

NameDescription
workspace-summaryLive counts for the wrapped API, plus whether this MCP server is read-only.
api-contractAuth, pagination, and endpoints for the wrapped API. The sandbox key is public demo data.
Harborline mobile launchShip the first TestFlight build of the field-ops app, including offline task cache.
Northline website redesignReplace the catalog site. Homepage wireframes are approved; photography is blocked.
Q4 client reportingQuarterly hours export and the client deck. Delivered.
Roller class schedule importImport the winter class CSV and resolve instructor duplicates and time zones.
Connecteam timesheet digestWeekly digest of field hours. Paused until Fieldwork confirms job codes.
Venue partner onboardingOnboard three venue partners and send the contract template.

TDQS

A3.8/5.0

Scored across 7 tools

Disambiguation5/5

Each tool maps to a distinct resource+action pair: three list_* tools for paging collections, three get_* tools for single-record fetches, and one summary/aggregate tool. The list/get split is explicit and reinforced by descriptions mentioning paging cursors versus id lookups. No two tools could plausibly be confused.

Naming Consistency5/5

Uniform snake_case verb_noun pattern throughout (get_*, list_*), with resources named consistently as projects, tasks, and contacts. The one aggregate tool, get_workspace_summary, still fits the get_* convention.

Tool Count5/5

Seven tools is well within the ideal range and every tool earns its place: one list and one get per each of the three entities, plus a summary. Nothing is redundant or padded.

Completeness4/5

Read coverage is complete and symmetric across all three resources (list + get for projects, tasks, contacts, plus an aggregate summary). The surface is read-only, and list_projects lacks the query/filter capability that list_tasks and list_contacts have, which is a minor asymmetry rather than a blocking gap.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues