Portfolio demo · Mustafa

Wrap any REST API as an MCP server.

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.

mcp-rest-api-server
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
Terminal demo: the MCP client lists Harborline projects, reads a project resource, and loads a status prompt.
Sixty seconds from clone to a live tool call. Read-only sandbox, no account.
7read tools, always on
3write tools, behind a flag
2transports: stdio and HTTP
0external accounts to try it

The boring parts, already done.

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.

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.

Cursors, not page numbers

Tools take limit and cursor and return nextCursor. If your API uses page numbers, the adapter lives in the client, not in the prompt.

Keys stay out of the log

Bearer or x-api-key, from the environment. Tool errors and stderr are scrubbed. A reflected key comes back as [redacted].

Retries that respect writes

Reads back off on 429 and 5xx and honor Retry-After. Writes retry a rate limit. They do not retry a 500.

Resources and prompts

A project snapshot, a contract resource, and two prompts that load live tasks before they ask the model to write.

Tests against a real socket

Vitest boots the sandbox and drives the server with the official MCP client, over an in-memory pair, Streamable HTTP, and stdio.

Where a call goes.

One process. The model never sees the API key. Harborline stands in until you set API_BASE_URL.

Clients

  • Claude Desktop
  • Claude Code
  • Cursor

mcp-rest-api-server

  • stdio or Streamable HTTP
  • Zod, then the read-only gate
  • Rate limit and retry

Your API

  • Harborline sandbox, or
  • any JSON API with a key

A live endpoint, still read-only.

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.

Paste a config.

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"
      }
    }
  }
}

I will build a custom MCP server for your API.

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.

Basic · 3 days

$180

Read-only, one API

  • Up to 5 read tools
  • Bearer or API-key auth
  • stdio and one client config
  • A short sandbox recording
Premium · 7 days

$780

Ready to share with a team

  • Writes behind the read-only flag
  • Resources, a prompt, and Docker
  • Streamable HTTP with a token
  • CI: lint, typecheck, test, build

Swap Harborline for your API.

Four edits. The guide in the repo names the files.

01

Set the base URL

API_BASE_URL and a read-only API_KEY. The sandbox steps aside.

02

Describe the JSON

Replace the Zod schemas. The client rejects a payload that does not match.

03

Map the endpoints

One method per call. Tools never call fetch themselves.

04

Keep writes off

Register them under the read-only check, then run the test suite.