Built around youYour business. Your data. Your future.
AI-poweredIntelligence built in. Not bolted on.
Secure by designEnterprise-grade security.
Real resultsSystems that scale. Results that last.
Technology Guides

The 2026 Model Context Protocol (MCP) Playbook: Connecting AI Agents to Your Local Tools and Databases

What changed in MCP's 2026-07-28 spec, which clients support it, a read-only database and file share example, and the security controls to set first.

Diagram of the Model Context Protocol connecting an AI agent to local tools, databases and outside APIs.
Illustration only.AI-generated illustration: Tomorrow’s Tech AI Solutions
In this article
  1. What MCP actually is
  2. Where the standard stands in late 2026
  3. Transports: stdio vs Streamable HTTP
  4. Which clients support it, and how they configure it
  5. Worked example: read-only access to a local database and a file share
  6. Security: the part that decides whether this is a good idea
  7. Rollout checklist for a mid-sized business
  8. FAQ

Most of the AI demos you see this year end at the same place: the model gives a good answer about data it was handed in a chat window. The work that actually saves an operations team time starts one step later, when the assistant can look things up in the systems you already run. The job database. The project file share. The CRM. The Model Context Protocol (MCP) is now the standard way to make that connection, and it changed in meaningful ways this summer.

This playbook is for IT managers and technical owners who have been asked to "hook the AI up to our stuff" and want to do it without creating a new security problem. It covers the current spec, client support, a read-only example against a local database and file share, and the security controls I would insist on before production. If you run Smartsheet and want the operations angle first, start with our earlier piece on Claude's Smartsheet integration. This one goes under the hood.

What MCP actually is

MCP is an open protocol for connecting AI applications to external data and tools. The spec defines three roles: hosts (the AI application, such as a desktop assistant or IDE), clients (the connector inside the host), and servers (the services that provide context and capabilities). Messages are JSON-RPC 2.0. [1]

A server can offer three kinds of things: [1]

  • Tools: functions the model can call, such as "look up open jobs for Crew 7."
  • Resources: context and data for the user or model to read, such as a file or a record.
  • Prompts: templated messages and workflows a user can pick, such as a weekly status report template.

The practical value: build a server for your job database once, and any MCP-capable client can use it. The official docs list Claude, ChatGPT, Visual Studio Code and Cursor among the clients that support it. [9]

Where the standard stands in late 2026

Two things matter for anyone planning a rollout: who controls the standard and which version you are building against.

Governance. On December 9, 2025, Anthropic donated MCP to the Agentic AI Foundation, a directed fund under the Linux Foundation co-founded with Block and OpenAI, with support from Google, Microsoft, AWS, Cloudflare and Bloomberg. Anthropic said MCP's governance model would remain unchanged, with maintainers continuing to run the project in the open. [10] For a buyer, that means MCP is no longer a single vendor's format. It is a neutral standard, which lowers the risk of building on it.

Current spec: 2026-07-28. The latest revision is dated 2026-07-28 and replaces 2025-11-25. [1] It is the biggest change since MCP launched. The headline items from the changelog: [2]

  • MCP is now stateless. The old initialize handshake is gone. Every request carries its protocol version and client capabilities in its own metadata, and servers must implement a new server/discover call to advertise what they support.
  • No more protocol-level sessions on the HTTP transport. The Mcp-Session-Id header was removed. Servers that need state across calls hand back explicit handles as ordinary tool arguments.
  • Server-to-client requests were replaced by a "multi round-trip request" pattern. When a server needs more input, it returns a result saying so, and the client retries with the answer.
  • Roots, Sampling and Logging are deprecated, along with the old HTTP+SSE transport. The spec now has a formal deprecation policy with a minimum twelve-month window.
  • Authorization tightened: clients must validate the iss parameter when present, and Dynamic Client Registration is deprecated in favor of Client ID Metadata Documents.

What this means for you: if a vendor or contractor quotes you an MCP integration, ask which protocol version it targets. Older servers still work through backward-compatibility rules, but the official tutorial itself warns that a server speaking only 2025-11-25 cannot talk to a client that supports only 2026-07-28. [11]

Transports: stdio vs Streamable HTTP

MCP defines two standard transports, and picking the right one is mostly a question of where the server runs. [3]

stdioStreamable HTTP
How it runsClient launches the server as a local subprocessServer runs as its own process behind one HTTP endpoint
Wire formatNewline-delimited JSON-RPC over stdin/stdoutEach message is an HTTP POST; reply is JSON or a request-scoped SSE stream
Who can reach itOnly the client that launched itAnything that can reach the endpoint, so auth and network rules matter
CredentialsRead from the environment; the OAuth spec does not applyOAuth 2.1-based authorization flow
Typical useA database or file share on the same machine or LANA shared team server, a SaaS connector, a central gateway
Loggingstderr only; anything non-MCP on stdout breaks itNormal application logging

Sources for the table: the stdio and Streamable HTTP binding pages and the authorization spec. [4] [5] [6]

Two details that trip people up. First, on stdio the server must not write anything to stdout that is not a valid MCP message; a stray print() will corrupt the stream. [4] Second, a "local" HTTP server is not automatically private. The spec requires Streamable HTTP servers to validate the Origin header to prevent DNS rebinding, and says local servers should bind to 127.0.0.1 rather than 0.0.0.0. [5] For a first project, default to stdio. It removes a whole class of network exposure.

Which clients support it, and how they configure it

Support is broad, but the details differ, especially around approvals. This is what each vendor's own documentation says today.

ClientLocal (stdio)Remote (HTTP)Where config livesApproval behavior
Claude CodeYesYes (SSE deprecated).mcp.json (project) or ~/.claude.jsonPrompts before using project-scoped servers; supports org-managed allow and deny lists
VS Code (Copilot)YesYesGuided setup; can write a workspace .mcp.jsonTool approval requests shown to the user
CursorYesYes (SSE and Streamable HTTP).cursor/mcp.json or ~/.cursor/mcp.jsonAsks before running an MCP tool by default
ChatGPT / OpenAI APINot covered in the docsYesPlugins in ChatGPT; "type": "mcp" tool in the Responses APIManual confirmation for write actions in ChatGPT; require_approval setting in the API

Sources: Claude Code [17], VS Code [18], Cursor [19] and OpenAI [20].

Worked example: read-only access to a local database and a file share

Here is a sensible pattern for a first connection. The goal is simple: let an assistant answer questions like "which open jobs does Crew 7 have this week?" and "find the latest punch list for the Main Street site," with no ability to change anything.

The steering group's own reference servers for PostgreSQL and SQLite have been archived, and the remaining reference servers are described as educational examples, not production-ready solutions. [16] For a database, that pushes you toward either a vetted vendor server or a small server you write and control. Small is good. A narrow server with two or three specific tools is easier to review than one that accepts arbitrary SQL.

The database server. This is an illustrative sketch built from the official Python SDK tutorial, which uses the MCPServer class, decorates functions with @mcp.tool(), and runs over stdio. [11] The read-only connection uses SQLite's documented URI mode. [14] We ran this exact server against a test database with version 2.3.0 of the Python SDK: it listed the tool, returned the right crew's open jobs in due-date order, and the read-only connection refused a write.

# jobs_server.py (illustrative, keep it this small)
import logging
import sqlite3
from mcp.server import MCPServer

logging.basicConfig(level=logging.INFO)  # writes to stderr, never stdout
logger = logging.getLogger(__name__)
mcp = MCPServer("jobs-readonly")
DB_URI = "file:C:/data/jobs.db?mode=ro"  # read-only at the driver level

@mcp.tool()
def open_jobs_for_crew(crew: str) -> str:
    """List up to 50 open jobs for one crew. Read-only."""
    con = sqlite3.connect(DB_URI, uri=True)
    try:
        rows = con.execute(
            "SELECT job_id, site, due_date FROM jobs "
            "WHERE crew = ? AND status = 'open' ORDER BY due_date LIMIT 50",
            (crew,),
        ).fetchall()
    finally:
        con.close()
    logger.info("open_jobs_for_crew crew=%s rows=%d", crew, len(rows))
    return "\n".join(f"{j} | {s} | due {d}" for j, s, d in rows) or "No open jobs."

if __name__ == "__main__":
    mcp.run(transport="stdio")

Notice what is not there: no free-form SQL tool. A parameterized query, a row limit, and a connection SQLite itself refuses to write through. For a server database such as PostgreSQL or SQL Server, the equivalent is a dedicated login with SELECT permission on specific views only, so the database enforces read-only even if the server code has a bug.

The SDK installs with uv add "mcp[cli]". [12] Check the Python requirement before you standardize; the sources currently disagree (see the discrepancy note at the end of this article). [13]

The file share. For documents, the reference filesystem server has a --read-only flag that registers only the tools that read and list, so write tools are never offered to the client. The server enforces this regardless of how the client is configured, and the README recommends also making directories read-only at the operating-system level for defense in depth. [15]

Wiring both into a client. The Claude Desktop config format from the official tutorial looks like this on Windows (paths are placeholders): [11]

{
  "mcpServers": {
    "jobs": {
      "command": "uv",
      "args": ["--directory", "C:\\mcp\\jobs", "run", "jobs_server.py"]
    },
    "project-docs": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "--read-only", "S:\\Projects\\Active"]
    }
  }
}

The filesystem README notes that on Windows you may need to wrap npx in cmd /c, and that running it through npx requires a current Node.js. [15] In Claude Code, the equivalent for the database server is claude mcp add --transport stdio jobs -- uv --directory C:\mcp\jobs run jobs_server.py, using the -- separator the docs describe. [17]

Map the network share to a drive letter or point at a local sync of it, and give the account that runs the client read-only NTFS permissions on that folder. Two locks, not one.

Security: the part that decides whether this is a good idea

MCP gives a language model a way to reach real systems. The spec is blunt about it: tools represent arbitrary code execution, hosts must obtain explicit user consent before invoking any tool, and tool descriptions such as annotations should be treated as untrusted unless they come from a trusted server. [1] The protocol cannot enforce those principles itself, so the controls are yours to build. These are the ones that matter most.

1. Least privilege, read-only first. Every tool you expose is something the model can be talked into using. Start with read tools only, scoped to the specific tables, views or folders the workflow needs. The spec's security guidance applies the same idea to OAuth scopes: start with a minimal set of low-risk read scopes and elevate only when a privileged operation is actually attempted, and avoid wildcard scopes like admin:*. [7]

2. Prompt injection through tool results. Anything a tool returns goes into the model's context. If that content was written by someone outside your company (an email, a ticket, a web page, a customer form), it can carry instructions. Invariant Labs showed this in May 2025 with the official GitHub MCP server: a malicious issue in a public repository hijacked an agent that was asked to review issues, which then pulled data from the user's private repositories and leaked it through a pull request. Their point was that this was not a flaw in the server code but an architectural problem. [22] Simon Willison's framing is the clearest test I know: an agent that combines access to private data, exposure to untrusted content, and the ability to communicate externally can be tricked into exfiltrating that data. [23] If a single agent session has all three, redesign it.

3. Tool poisoning and rug pulls. A malicious server can hide instructions in a tool's description, visible to the model but not to the user. In Invariant's April 2025 demonstration, an innocent-looking add tool instructed the agent to read local config and SSH key files and slip them out through a tool parameter. They also described "rug pulls," where a server changes a tool description after you approved it, and "shadowing," where one server's description changes how the agent uses another, trusted server's tools. Their recommended mitigations include pinning server versions and checking tool descriptions against a known hash. [21] In practice: known publishers, pinned versions, reviewed upgrades.

4. Local servers run with your privileges. The spec's security guidance warns that a local MCP server can be a malicious startup command in a config file or a malicious payload in the package itself, and that it runs with the same privileges as the client. It recommends sandboxing, restricted file system and network access, and using stdio to limit access to just the client. [7] Claude Code adds a useful guard here: a cloned repository cannot approve its own servers, and it prompts before using project-scoped servers. [17]

5. Confused deputy and token passthrough. Once you move to remote servers that call other APIs, two OAuth mistakes show up. Token passthrough, where a server accepts a token from the client and forwards it downstream, is explicitly forbidden: MCP servers must only accept tokens issued for themselves and must validate the token audience. [6] The security guidance explains why: passthrough bypasses rate limits and monitoring and breaks the audit trail, because the downstream service cannot tell who actually made the call. [7] The confused deputy problem hits MCP proxy servers that use a static client ID with a third-party API, and the fix is per-client consent before forwarding to the third party. [7]

6. Human approval for every write. The tools spec says there should always be a human in the loop with the ability to deny tool invocations, and that clients should show tool inputs before calling the server and prompt for confirmation on sensitive operations. [8] My rule for AI is "propose, never act": the AI can draft the change, a person approves it before it is committed. When you eventually add write tools, make each one narrow (update one status field, not "run SQL"), and keep approval switched on for it in every client.

7. Logging you can actually audit. The tools spec says clients should log tool usage for audit purposes, and that servers must validate inputs, enforce access controls, rate limit and sanitize outputs. [8] Log at the server too: which tool, which arguments, who called it, how many rows came back. The 2026-07-28 revision also documents OpenTelemetry trace context conventions for tying agent actions into existing monitoring. [2]

Rollout checklist for a mid-sized business

The sequence I would run for a company with a small IT team. It assumes one pilot workflow, not a platform launch.

  1. Pick one painful question. Choose a recurring lookup that costs real hours, such as crew availability or the status of open jobs. Write down what "a good answer" looks like.
  2. Inventory the data path. Which system holds the answer, who owns it, and what classification of data is in it. Leave anything with payroll, health or customer payment data out of the pilot.
  3. Choose the client and freeze its configuration. Pick one client your team already uses. If it supports managed allow and deny lists, turn them on so users cannot add servers on their own.
  4. Build or vet one server. Prefer a small server you control or one from the system's vendor. Pin the version. Read every tool description it exposes.
  5. Enforce read-only at the source. Dedicated database login with SELECT on specific views. Read-only folder permissions. Read-only flags on the server. All three.
  6. Default to stdio. If you need HTTP, bind locally, validate Origin, require authentication, and keep it off the public internet.
  7. Check the trifecta. Make sure no single agent session combines private data, untrusted content and an outbound channel.
  8. Turn on logging before users touch it. Server-side logs of tool, arguments, caller and result size, kept somewhere the agent cannot edit.
  9. Run a red-team afternoon. Plant a test document with injected instructions in the share and see what the agent does with it.
  10. Pilot with a few users. Check answers against what people used to dig out by hand.
  11. Add writes one at a time. Narrow tools, approval always on, and a named owner for each one.
  12. Re-review on every spec or server upgrade. Diff tool descriptions and permissions, and confirm the protocol version your client and servers both speak.

FAQ

Is MCP only for Claude?

No. MCP started at Anthropic but now sits under the Linux Foundation's Agentic AI Foundation, co-founded with Block and OpenAI. [10] Claude, ChatGPT, VS Code and Cursor all document MCP support. [9]

Do I need OAuth for a local server?

Not for stdio. The authorization spec says stdio implementations should not follow the OAuth flow and should take credentials from the environment instead. OAuth applies to HTTP-based transports. [6]

Can I let the AI write to our database?

You can, but earn it. Start read-only, add one narrow write tool at a time, and keep a person approving each write. The spec recommends a human in the loop with the ability to deny tool calls. [8]

Will servers built for the 2025 spec still work?

Often, through the backward-compatibility rules, but not always. The official tutorial notes that a server speaking only 2025-11-25 cannot connect to a client that supports only 2026-07-28. [11] Confirm versions on both sides before rollout.

Key specifications

ItemValueStatusSource
Current MCP specification revision2026-07-28 (previous: 2025-11-25)Verified[1][2]
Standard transportsstdio and Streamable HTTP; HTTP+SSE deprecatedVerified[3][2]
Authorization basis (HTTP transports)OAuth 2.1 draft with Protected Resource Metadata (RFC 9728) and Resource Indicators (RFC 8707); optional overallVerified[6]
StewardAgentic AI Foundation, a directed fund under the Linux Foundation (since 2025-12-09)Verified[10]

Where sources disagree

Minimum Python version for the MCP Python SDK

  • [12] The SDK README states Python 3.11+.
  • [11] The official build-server tutorial lists Python 3.10 or higher.
  • [13] PyPI metadata for mcp 2.3.0 declares requires_python >=3.10.

Our read: Packaging metadata allows 3.10, but the SDK's own README says 3.11+. We recommend standardizing on Python 3.11 or later to stay inside both.

Sources

  1. Specification (version 2026-07-28)Model Context Protocol · July 28, 2026 · accessed November 16, 2026Primary/specification/latest resolves to this revision.
  2. Key Changes (2026-07-28 changelog)Model Context Protocol · July 28, 2026 · accessed November 16, 2026Primary
  3. TransportsModel Context Protocol · accessed November 16, 2026Primary
  4. stdio transportModel Context Protocol · accessed November 16, 2026Primary
  5. Streamable HTTP transportModel Context Protocol · accessed November 16, 2026Primary
  6. AuthorizationModel Context Protocol · accessed November 16, 2026Primary
  7. Security Best PracticesModel Context Protocol · accessed November 16, 2026Primary
  8. Tools (server features)Model Context Protocol · accessed November 16, 2026Primary
  9. What is the Model Context Protocol (MCP)?Model Context Protocol · accessed November 16, 2026PrimaryThis URL now serves the MCP introduction page.
  10. Donating the Model Context Protocol and establishing the Agentic AI FoundationAnthropic · December 9, 2025 · accessed November 16, 2026Vendor documentation
  11. Build an MCP serverModel Context Protocol · accessed November 16, 2026Primary
  12. MCP Python SDK (README)GitHub: modelcontextprotocol/python-sdk · accessed November 16, 2026Primary
  13. mcp package metadata (version 2.3.0)PyPI · accessed November 16, 2026Datarequires_python >=3.10 per the PyPI JSON API.
  14. sqlite3: DB-API 2.0 interface for SQLite databasesPython Software Foundation · accessed November 16, 2026Primary
  15. Filesystem MCP Server (README)GitHub: modelcontextprotocol/servers · accessed November 16, 2026Primary
  16. Model Context Protocol servers (README)GitHub: modelcontextprotocol/servers · accessed November 16, 2026Primary
  17. Connect Claude Code to tools via MCPAnthropic · accessed November 16, 2026Vendor documentation
  18. Use MCP servers in VS CodeMicrosoft · accessed November 16, 2026Vendor documentation
  19. Model Context Protocol (MCP)Cursor · accessed November 16, 2026Vendor documentation
  20. Building MCP servers for ChatGPT and API integrationsOpenAI · accessed November 16, 2026Vendor documentation
  21. MCP Security Notification: Tool Poisoning AttacksLuca Beurer-Kellner, Marc Fischer · Invariant Labs · April 1, 2025 · accessed November 16, 2026Coverage
  22. GitHub MCP Exploited: Accessing private repositories via MCPInvariant Labs · May 26, 2025 · accessed November 16, 2026Coverage
  23. The lethal trifecta for AI agents: private data, untrusted content, and external communicationSimon Willison · Simon Willison's Weblog · June 16, 2025 · accessed November 16, 2026Coverage

Topicsmcp · model context protocol · ai agents · ai security · databases · prompt injection · it operations

Filed underTechnology Guides

About the author

John Hockinson

Founder of Tomorrow’s Tech AI. 18 years inside telecom and infrastructure programs — now building business operating platforms, AI command centers, and operations systems for businesses still running on spreadsheets and email chains.

More about John →