Large Language Models

MCP Server for SaaS: Pricing, API Setup and Examples for Apps

A practical, no-nonsense look at running an MCP server for SaaS: what hosting and pricing models cost in 2026, how to set up the API with tools and OAuth, and concrete examples for support, CRM and billing apps that you can copy today.

MCP Server for SaaS: Pricing, API Setup and Examples for Apps
Cristian Da Conceicao

Your customers already ask AI assistants to summarize their week, draft their emails and sort their inbox. Sooner or later they will ask the assistant to do something inside your product too: "Close the three overdue invoices," "Reassign these tickets to Maria," "Show me last month's churn." If your app has no way to answer, the assistant shrugs and your competitor's app, which does, gets the credit. An MCP server for SaaS is the bridge that lets an AI assistant call your product safely, with the permissions of the person who is logged in. This article walks through what it costs, how to set up the API side, and what working examples look like for real apps.

What an MCP Server Does for SaaS

The Short Version

MCP stands for Model Context Protocol. It is an open standard that describes how an AI client (a chat app, a coding assistant, an agent runtime) discovers and calls outside capabilities. Your server publishes a list of tools (actions), resources (readable data) and prompts (reusable instructions). The client reads that list, shows it to the model, and the model decides when to call something.

Think of it as a USB port for your product. Before MCP, every integration was custom glue: one plugin format for one assistant, another for the next. With a single MCP endpoint, any compliant client can connect.

💡 Quick mental model: your REST API is for developers who read documentation. Your MCP server is for models that read tool descriptions. The descriptions are the product.

Product manager and developer reviewing a handwritten SaaS feature list at a meeting table

Why Apps Need One

There are three practical reasons product teams are shipping these now:

  • Distribution. Users meet your product inside the assistant they already use all day.
  • Retention. An app wired into someone's daily AI workflow is harder to swap out.
  • Support load. Users who can ask questions in plain language open fewer tickets about "where is that button."

It is not magic, though. An MCP server is a thin layer. It translates a model's structured request into an authenticated call to the API you already have. If your API is a mess, the server will expose that mess faster.

The Real Cost of Running One

Hosting Bills

Good news first: the compute is tiny. A typical SaaS tool call is a short JSON request that triggers one or two API calls. You are not running a model, only a small web service.

Prices below come from 2026 comparison pages and vary by vendor, so treat them as ballpark figures and check the current pricing page before you commit.

OptionTypical starting costBest for
Cloudflare WorkersFree plan, paid tiers from about $5/monthRemote servers with global traffic
Your own container hostA few dollars to $20/month for a small instanceTeams that already run services
Managed MCP hosting servicesOne example starts near $29/month for one server with a small monthly request cap, and about $290/month for 20 serversTeams that want zero infrastructure work
Integration platforms with hosted serversUsually billed on credits or usageConnecting many third-party apps quickly

One thing to watch: at least one popular hosting marketplace announced that its hosted endpoints would shut down on 31 October 2026. If you built on a hosted service from a young vendor, keep your server code portable so you can move it in an afternoon.

Row of server racks with a technician checking a patch panel in a small colocation room

Pricing Models for Your Customers

Here the answer is less obvious. Most SaaS companies do not sell the MCP server as a separate product. They fold it into an existing plan, the same way Supabase's hosted tiers (from $0 up to $599/month) include access to their server while the open-source server itself is free. Vendor-run servers usually have no standalone price tag at all.

If you do want to charge for it, these are the models in circulation:

  1. Included in every plan. Simplest. Best when the server lowers your support cost.
  2. Gated to paid plans. A natural upsell. Free users get the web app; paying users get the assistant integration.
  3. Usage-based credits. Works for heavy workloads like data exports or report generation.
  4. Per-seat add-on. Familiar to buyers, easy to forecast.

A 2026 pricing article made a point worth repeating: do not price by the number of tool invocations just because they are easy to count. A single call that closes a quarter's books is worth far more than fifty calls that list tasks. Charge for the outcome, or the plan tier, not the click.

Hidden Costs

The server is cheap. These are not:

  • Security review. Enterprise buyers will ask how tokens are stored and scoped.
  • Rate limit headroom. Assistants can call your API much faster than a human ever would.
  • Support. A confused model produces odd requests. Someone has to read the logs.
  • Maintenance. Each API change means a tool update, or the model calls something that no longer exists.

Finance desk with calculator, printed subscription spreadsheet and coffee

Picking a Hosting Setup

Local or Remote?

MCP supports two main transports. stdio runs the server as a local process on the user's machine. It is perfect for developer tools and quick tests. Streamable HTTP runs the server on your infrastructure at a public URL, and this is what you want for a SaaS product, because your customers will not install anything.

QuestionLocal (stdio)Remote (Streamable HTTP)
Who runs it?The userYou
Setup for usersInstall and configurePaste a URL and sign in
AuthEnvironment variable or local tokenOAuth 2.0 per user
Scales horizontallyNoYes, especially in stateless mode
Good forPrototypes, internal toolsCustomer-facing products

For customer-facing apps, go remote. Stateless mode, where each request stands on its own, is the easiest to scale behind a load balancer. Add sessions only if you truly need streaming state between calls.

Build or Buy?

You have three paths. Build it yourself with an official SDK: most control, a few days of work. Generate from your OpenAPI spec: fast, but the result tends to expose every endpoint as a tool, which is usually too many. Use an integration platform: fastest for connecting other people's apps, less suitable for your own product where you want hand-tuned tool descriptions.

For your own SaaS, build it. The code is small and the thinking, not the typing, is the hard part.

API Setup, Step by Step

Step 1: Map Your API to Tools

Do not mirror your REST API one to one. Start from tasks. Ask what a customer would say to an assistant on a Monday morning, then write a tool for each sentence.

A project-management app might end up with:

  • search_tasks (read only)
  • create_task (write)
  • assign_task (write)
  • get_project_summary (read only)

Four to ten well-named tools beat sixty auto-generated ones. Models pick better from a short list, and every tool description costs context tokens on every conversation.

Backend developer typing at a laptop in a home office at dusk

Step 2: Write the Server

Here is a minimal TypeScript example using the official SDK and Zod for input validation. It exposes two tools that forward to a SaaS REST API using the caller's own token.

import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { z } from "zod";

const API = "https://api.yourapp.com/v1";

export function buildServer(userToken: string) {
  const server = new McpServer({ name: "yourapp", version: "1.0.0" });

  server.tool(
    "search_tasks",
    "Find tasks by text. Returns id, title, assignee and due date. Use before assigning or updating a task.",
    { query: z.string().describe("Words to search for"), limit: z.number().max(25).default(10) },
    async ({ query, limit }) => {
      const res = await fetch(`${API}/tasks?q=${encodeURIComponent(query)}&limit=${limit}`, {
        headers: { Authorization: `Bearer ${userToken}` },
      });
      if (!res.ok) return { isError: true, content: [{ type: "text", text: `API error ${res.status}` }] };
      return { content: [{ type: "text", text: JSON.stringify(await res.json()) }] };
    }
  );

  server.tool(
    "assign_task",
    "Assign one task to one person. Requires a task id from search_tasks and a user email.",
    { taskId: z.string(), assigneeEmail: z.string().email() },
    async ({ taskId, assigneeEmail }) => {
      const res = await fetch(`${API}/tasks/${taskId}/assign`, {
        method: "POST",
        headers: { Authorization: `Bearer ${userToken}`, "Content-Type": "application/json" },
        body: JSON.stringify({ email: assigneeEmail }),
      });
      return { content: [{ type: "text", text: res.ok ? "Assigned." : `Failed: ${res.status}` }] };
    }
  );

  return server;
}

Notice three habits in that snippet. The descriptions say when to use the tool, not only what it does. Inputs are validated before anything touches your API. Errors come back as readable text so the model can recover or explain.

Step 3: Add Authentication

This is the part that separates a demo from a product. Your server should never use one shared service account. Each customer signs in through OAuth 2.0, and every tool call forwards that user's own token to your API. That way the assistant can do exactly what the person could do, and nothing more.

The flow in short:

  1. The client calls your /mcp endpoint without a token.
  2. Your server answers 401 with a WWW-Authenticate header pointing to your authorization metadata.
  3. The client sends the user through your normal login and consent screen.
  4. The client receives a token and retries the request with Authorization: Bearer ....
  5. Your server validates the token, then passes it along to the API.

Serve everything over HTTPS. Several assistants will refuse to finish the sign-in on plain HTTP.

Brass padlock on a weathered wooden door, symbolizing OAuth protection

A tiny Express wrapper makes the pattern concrete:

import express from "express";
import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";

const app = express();
app.use(express.json());

app.post("/mcp", async (req, res) => {
  const auth = req.headers.authorization ?? "";
  if (!auth.startsWith("Bearer ")) {
    res.status(401)
      .set("WWW-Authenticate", 'Bearer resource_metadata="https://mcp.yourapp.com/.well-known/oauth-protected-resource"')
      .json({ error: "unauthorized" });
    return;
  }
  const server = buildServer(auth.slice(7));
  const transport = new StreamableHTTPServerTransport({ sessionIdGenerator: undefined });
  res.on("close", () => { transport.close(); server.close(); });
  await server.connect(transport);
  await transport.handleRequest(req, res, req.body);
});

app.listen(3000);

Setting sessionIdGenerator to undefined gives you stateless mode, so you can run several copies behind a load balancer without shared memory. If your SDK version differs, check its current API before copying this verbatim.

💡 Scopes matter. Offer separate scopes such as tasks:read and tasks:write. Many customers will connect read-only first and only grant write access once they trust the setup.

Examples for Real Apps

Support Desk

A helpdesk app can expose search_tickets, get_ticket_thread, draft_reply and add_internal_note. A manager asks: "Which open tickets mention the billing outage, and who has not replied in 24 hours?" The model searches, filters, and returns a short list. Nothing is sent to a customer until a human approves the draft, which is a good default for any write that leaves your system.

Customer support desk seen from above with headset, notepad and laptop

CRM and Sales

A CRM server might offer find_contact, log_call, create_deal and get_pipeline_summary. A rep says: "Log that I spoke with Dana at Northwind, move the deal to negotiation and remind me Friday." That is three calls the model chains together. Adding a dry run flag on destructive tools, such as merging or deleting contacts, lets the assistant preview the change first.

Billing and Finance

Billing apps carry the most risk. A safe design keeps read tools broad (list_invoices, get_revenue_by_month) and write tools narrow and confirmable (send_invoice_reminder, issue_refund with a hard amount cap). Many teams ship read-only first, collect two weeks of logs, then open up writes one at a time.

Small startup team gathered around a standing table in a loft office

Here is a quick comparison of how the three examples differ:

App typeRead toolsWrite toolsMain riskSuggested guardrail
Support deskSearch, thread viewDraft reply, notesWrong message to a customerHuman approval on sends
CRMContacts, pipelineLog activity, create dealBad merges and deletesDry run flag
BillingInvoices, revenueReminders, refundsMoney moved by mistakeAmount caps, confirmation

Mistakes That Cost Weeks

Too Many Tools

Exposing every endpoint is the classic first mistake. The model sees sixty near-identical names, picks the wrong one, and your support inbox fills with "the assistant did something weird." Group related actions, cut anything a normal user would never ask for, and merge tools that differ by one parameter.

Vague Descriptions

"Manages tasks" tells a model nothing. "Search tasks by text. Returns id, title and assignee. Call this before assign_task" tells it everything. Spend more time on descriptions than on code. Then test them with real prompts, which is where a capable language model earns its place.

Skipping Rate Limits and Logs

Assistants retry. Models loop. A single confused conversation can hit your API hundreds of times. Add per-user rate limits at the MCP layer, return a clear "slow down" message, and log every call with the user id, tool name and result status. You will need that trail the first time a customer asks, "Why did it change my data?"

Returning Walls of JSON

Send back what the model needs, not the entire database row. Trim fields, paginate lists, and keep responses under a few thousand tokens. Smaller replies are cheaper, faster and more accurate.

Two engineers reviewing code on a laptop with a pencil checklist

Test It With Real Language Models

Your server is only as good as the models that call it, so test with more than one. Each handles tool selection a bit differently. Some call tools eagerly, others ask clarifying questions first, and you want to see both behaviors before customers do.

On PicassoIA you can run the same prompt through several language models side by side, which makes it easy to spot weak tool descriptions:

  • Claude Sonnet 5 for balanced tool use and clear explanations of what it just did.
  • Claude Fable 5 for long, multi-step tasks where several tools must be chained.
  • GPT 5.6 Sol for coding-heavy flows and structured output checks.
  • Gemini 3.5 Flash for fast, cheap smoke tests of many prompts in a row.
  • Kimi K2.6 for agent-style behavior and code generation.

A useful test routine takes twenty minutes. Write ten realistic user requests, including two vague ones and two that should be refused. Paste your tool descriptions into each model as context, ask it which tool it would call and with what arguments, and compare. Wherever two models disagree, your description is probably ambiguous. Fix the wording, run it again, and keep the winning version in your repository as a regression test.

💡 Cheap trick: ask the model, "Which of these tools would you be unsure about, and why?" The answers point straight at the descriptions that need rewriting.

Try It on PicassoIA

An MCP server for SaaS pays off when the assistant on the other end is reliable, so spend an afternoon putting your tool descriptions in front of different models. Open PicassoIA's language models, paste your tool list, throw ten awkward requests at it, and watch where the model hesitates. While you are there, browse everything else the platform offers, from image and video generation to speech and music, at picassoia.com/en/all-models. Product screenshots, onboarding visuals and launch videos for your new integration can come from the same place.

Founder at an office window at golden hour looking over a city

Start small: four tools, one read-only scope, one hosting plan under $10 a month. Ship it to a handful of customers, read the logs, and expand from there. The apps that do this well in the next year will feel like they were built for assistants from day one, and the work is mostly clear writing and careful permissions, not heavy engineering.

Share this article

Choose your language

FreeCreate AI Images and VideosFree, No Credit CardFree Generations to StartSeedance 2.5 Lite IncludedStart Free Now