What Goes into an MCP Server for Trading Tooling?
Connecting an AI assistant to trading software is not just a matter of exposing an API. The engineering question is narrower: which information may the assistant retrieve, which operations may it request, and where are those permissions enforced?
The MCP tools specification provides a way to describe and invoke capabilities. For a trading connector, we recommend starting with a supervised, read-only workflow rather than broad access to an execution system. A reporting assistant makes a useful example of what that build involves.
This walkthrough follows MCP specification revision 2026-07-28, the current version at the time of writing (versioning). Many clients and SDKs still implement the earlier handshake-based revision 2025-11-25; the tool, resource, prompt and authorisation points below apply to both, but session, handshake and subscription behaviour differs. Pin the revision, SDK version and target client together and test that combination before release.
Start with a narrow boundary
Suppose the requirement is to inspect a terminal connection and prepare an operational report. Define that boundary before writing the connector: permitted accounts, available fields, freshness requirements and prohibited actions.
Our proposed design would expose connection status and approved diagnostic records, but no order-submission function. The backend should enforce those restrictions independently of anything written in the assistant’s instructions. This follows the tools specification’s requirements for input validation, access controls and rate limiting, rather than relying on the model to exercise restraint (tool security requirements).
That boundary-setting is the starting point for MCP Server Development: decide what the interface permits before deciding how conversational it should feel.
That conclusion is one we have already reached in our own writing. In May 2026 we published “Model Context Protocols for Trading: Is the hype justified?”, arguing that MCP is a coordination layer rather than a replacement for execution engines or risk systems, and that the most credible near-term applications are narrow and supervised. More sensitive actions, such as live order submission, should remain constrained by permissions and existing execution controls. Production use is a higher threshold than showing that a connection is technically possible. In the MCP work we take on, we treat authentication, input validation and rate limiting as standard, and we add IP allowlisting and audit logging where the environment is sensitive. This walkthrough starts with a read-only diagnostic report for that reason.
Separate tools, resources and prompts
MCP offers three distinct building blocks. Tools are callable functions designed to be model-controlled; resources supply context under application control; prompts are reusable templates intended for explicit user selection. These describe interaction models, not substitutes for permission checks (tools, resources, prompts).
In our proposed connector, a resource could provide a terminal configuration summary through a URI such as terminal://configuration/approved. A tool called get_connection_status could perform a fresh diagnostic lookup. A prompt named “Prepare an operational report” could request a structured summary of the available information.
These are illustrative interface names, not built-in MCP features. Supplying a report template should not implicitly grant access to additional accounts or actions. The server still needs to check each underlying request.
Define contracts before handlers
A tool definition includes a name, description and JSON Schema input contract. Servers supporting tools declare that capability, which in revision 2026-07-28 is advertised through server/discover rather than an opening handshake; clients discover definitions through tools/list and request execution through tools/call. An optional output schema can define the structure of returned data (tool definitions and messages).
For the diagnostic example, we would accept an account alias from an approved set, not an arbitrary endpoint URL. The response could contain connection state, observation time and a clearly labelled error status. Those fields are design choices; their purpose is to make missing or stale information explicit.
Schema validation should be followed by application checks. An alias can be syntactically valid yet belong to an account the caller may not inspect. Likewise, marking a tool as read-only is descriptive metadata, not enforcement: the specification warns that tool annotations are untrusted unless they come from trusted servers (annotations and security).
Choose transport for the deployment
The transport binding in specification revision 2026-07-28 describes stdio and Streamable HTTP. With stdio, the client launches a server subprocess. Streamable HTTP supports an independently running server reached over HTTP (transport specification).
For a local diagnostic utility, stdio is worth considering. Keep ordinary logs on standard error: standard output must contain only valid MCP messages. For a shared hosted connector, consider Streamable HTTP and its associated access controls.
The cited binding requires Origin-header validation for Streamable HTTP and recommends binding local HTTP servers to localhost. It also recommends authentication. In revision 2026-07-28, protocol sessions and stream resumability were removed and subscriptions moved to subscriptions/listen; this article does not cover them. If the connector needs state across calls, pass explicit server-issued handles as ordinary tool arguments (changelog).
Keep authorisation boundaries separate
Under revision 2026-07-28, authorisation is optional at protocol level. When its HTTP authorisation mechanism is implemented, a protected MCP server acts as an OAuth resource server and advertises Protected Resource Metadata for discovery. Stdio is treated differently and should retrieve credentials from the environment rather than use that HTTP flow (Authorization specification).
For a protected HTTP connector, the server must validate that incoming access tokens were issued for it. If it calls an upstream API using OAuth, that upstream access uses a separate token. Passing the client’s MCP token through to the upstream service is explicitly forbidden (token audience and passthrough rules).
Our recommendation is to start with the minimum read permissions required for diagnostics. The official security guidance advocates narrow scopes and incremental elevation, rather than granting unrelated privileges in advance (scope minimisation).
Test failures, not just discovery
A client successfully listing a tool is only the first check. The specification distinguishes protocol errors, such as an unknown tool, from execution failures returned in a tool result with isError: true. It also recommends client timeouts, result validation and usage logging (error handling and client controls).
For our reporting connector, we would test denied account access, an unavailable terminal, stale observations and an upstream timeout. Each should produce a bounded, understandable result rather than an invented “healthy” status.
We would also check that secrets are absent from returned diagnostics and logs. The official security guidance identifies cached or logged tokens as a theft risk and requires secure token storage (token security). These are integration acceptance checks, not evidence about any trading strategy.
Limits and caveats
Read-only access still needs protection: configuration records and account context may be sensitive. The resources specification calls for URI validation and permission checks for sensitive resources (resource security).
Human oversight also needs deliberate implementation. The tools specification recommends keeping a person able to deny invocations and confirming sensitive operations; it does not prescribe one universal user interface. We would verify the intended client’s actual approval experience before expanding the connector’s scope.
Finally, this is an architecture walkthrough, not a complete server implementation or a statement of Nexo’s deployed protocol version. Pin the specification revision, SDK and supported clients together, then test that combination before release.
What a useful server should deliver
An MCP server for trading tooling should expose a small, understandable contract backed by enforceable permissions. For the example here, the measured starting point is a read-only diagnostic report, with explicit schemas, protected credentials and tested failure paths.
The wider AI Integrations question is whether the assistant receives the right context within the right boundaries. A conversational interface should sit on top of those controls, not replace them.
Drafted with AI assistance; reviewed, edited and approved by Ionut Claudiu Fratila.