Read-only until you say otherwise
Write tools are not registered while MCP_READ_ONLY is true. The HTTP client also refuses POST and PATCH, so a new tool cannot slip past the flag.
Portfolio demo · Mustafa
A TypeScript server Claude Desktop, Claude Code, and Cursor can launch. Auth, cursor pagination, retries, and a read-only switch. The Harborline sandbox runs with no external accounts.
Portfolio demo, not client work. Harborline is fictional sample data.
list_projects { limit: 2 } prj_mobile Harborline mobile launch active prj_northline Northline website redesign active nextCursor eyJvIjoyfQ get_project prj_northline Northline Goods · active · due 2026-12-12 resources/read harborline://projects/prj_northline 4 tasks · 1 blocked read-only · stdio · no account required
The interesting work is mapping your API. The server around it — validation, paging, auth, and the client config — should not be a weekend of glue.
Write tools are not registered while MCP_READ_ONLY is true. The HTTP client also refuses POST and PATCH, so a new tool cannot slip past the flag.
Tools take limit and cursor and return nextCursor. If your API uses page numbers, the adapter lives in the client, not in the prompt.
Bearer or x-api-key, from the environment. Tool errors and stderr are scrubbed. A reflected key comes back as [redacted].
Reads back off on 429 and 5xx and honor Retry-After. Writes retry a rate limit. They do not retry a 500.
A project snapshot, a contract resource, and two prompts that load live tasks before they ask the model to write.
Vitest boots the sandbox and drives the server with the official MCP client, over an in-memory pair, Streamable HTTP, and stdio.
One process. The model never sees the API key. Harborline stands in until you set API_BASE_URL.
After deploy, clients connect to https://mcp-api.quvantic.com/mcp. One POST, JSON in and JSON out, Harborline data only. The function stays inside the Hobby time limit. It will not call your API and it will not write.
Stdio is the path all three clients launch. Swap the base URL and use a read-only key. Local checkouts can point command at node dist/cli.js before the package is on npm.
{
"mcpServers": {
"harborline": {
"command": "npx",
"args": ["-y", "mcp-rest-api-server"],
"env": {
"API_BASE_URL": "https://api.example.com",
"API_KEY": "YOUR_API_KEY",
"MCP_READ_ONLY": "true"
}
}
}
}
claude mcp add harborline \ -e API_BASE_URL=https://api.example.com \ -e API_KEY=YOUR_API_KEY \ -e MCP_READ_ONLY=true \ -- npx -y mcp-rest-api-server
{
"mcpServers": {
"harborline": {
"command": "npx",
"args": ["-y", "mcp-rest-api-server"],
"env": {
"API_BASE_URL": "https://api.example.com",
"API_KEY": "YOUR_API_KEY",
"MCP_READ_ONLY": "true"
}
}
}
}
{
"mcpServers": {
"harborline": {
"type": "http",
"url": "http://127.0.0.1:8787/mcp",
"headers": {
"Authorization": "Bearer YOUR_MCP_HTTP_TOKEN"
}
}
}
}
Fixed price, scoped like the template. Similar read-only jobs have been posting around $20–48/hr. You get the source, not a closed binary. Full write-up in the repo’s offer note.
$180
$420
$780
Four edits. The guide in the repo names the files.
API_BASE_URL and a read-only API_KEY. The sandbox steps aside.
Replace the Zod schemas. The client rejects a payload that does not match.
One method per call. Tools never call fetch themselves.
Register them under the read-only check, then run the test suite.