mcp-rest-api-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| API_KEY | No | API key for the upstream API. Defaults to `sandbox-demo-key` for the sandbox. Required once `API_BASE_URL` is set. | |
| LOG_LEVEL | No | Log level: `debug`, `info`, `warn`, `error`, or `silent`. | info |
| API_BASE_URL | No | Upstream origin. Defaults to the embedded sandbox if unset. Required for a real API. | |
| MCP_HTTP_HOST | No | HTTP bind host. | 127.0.0.1 |
| MCP_HTTP_PORT | No | HTTP bind port. | 8787 |
| MCP_READ_ONLY | No | Set to `false` to register write tools. | true |
| API_AUTH_STYLE | No | Auth style: `bearer`, `api-key`, or `both`. | bearer |
| API_KEY_HEADER | No | Header used for `api-key` and `both` auth styles. | x-api-key |
| API_TIMEOUT_MS | No | Per-attempt timeout in milliseconds. | 10000 |
| MCP_HTTP_TOKEN | No | Bearer token required on `/mcp` when set. | |
| API_MAX_RETRIES | No | Extra attempts after the first. | 3 |
| API_RETRY_MAX_MS | No | Retry cap in milliseconds, including `Retry-After`. | 8000 |
| API_RETRY_BASE_MS | No | Backoff base in milliseconds. Jitter is full. | 200 |
| API_RATE_LIMIT_RPS | No | Token bucket refill rate. | 10 |
| API_RATE_LIMIT_BURST | No | Burst 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
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
| completions | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| project-status-brief | Draft a status brief from a live Harborline project and its tasks. |
| client-update-email | Draft 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
| Name | Description |
|---|---|
| workspace-summary | Live counts for the wrapped API, plus whether this MCP server is read-only. |
| api-contract | Auth, pagination, and endpoints for the wrapped API. The sandbox key is public demo data. |
| Harborline mobile launch | Ship the first TestFlight build of the field-ops app, including offline task cache. |
| Northline website redesign | Replace the catalog site. Homepage wireframes are approved; photography is blocked. |
| Q4 client reporting | Quarterly hours export and the client deck. Delivered. |
| Roller class schedule import | Import the winter class CSV and resolve instructor duplicates and time zones. |
| Connecteam timesheet digest | Weekly digest of field hours. Paused until Fieldwork confirms job codes. |
| Venue partner onboarding | Onboard three venue partners and send the contract template. |
TDQS
Scored across 7 tools
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.
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.
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.
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.