You wire an AI assistant into your investing workflow, ask whether a mid-cap software stock passes Shariah screening, and get a polished answer in two seconds. The debt ratio looks neat, the revenue split sounds reassuring, and the assistant declares the stock compliant. Then you check the latest 10-K filing and realize the model guessed from outdated training text.
That gap is why engineering teams reach for an MCP server for AI. Rather than letting a language model improvise financial facts, the server sits between the assistant and an authoritative API, turning natural-language questions into structured requests with real data behind them. Across six major ecosystem markets, a 2025 arXiv measurement study of MCP adoption validated 8,401 projects, analyzing 8,060 MCP servers and 341 MCP clients already in the wild.
Treating that server as a simple wire, however, misses half the job. In finance and compliance, an MCP server is a trust boundary: every verdict that crosses it needs to carry its methodology, timestamp, coverage level, and exact null-versus-zero meaning so neither the model nor the end user mistakes an incomplete record for a clean pass.
Table of Contents
- What an MCP Server for AI Does
- Resources, Prompts and Tools Compared
- How an AI Assistant Reaches Tools Through MCP
- Security Risks to Plan For Before You Connect
- Connecting Akinda's MCP Server to Your AI Client
- Akinda's Five Tools for Shariah Screening Workflows
- Deciding Whether an MCP Layer Fits Your Product
What an MCP Server for AI Does
An equity analyst opens an AI chat window before a morning investment committee meeting and asks whether a newly listed industrial stock is halal. Without live data access, the assistant generates a confident verdict from general web patterns, unaware that the company took on a new credit facility last quarter. The analyst doesn't need a smarter chatbot; they need the assistant plugged into a real screening engine.
The protocol works like USB-C for hardware. Before USB-C, every phone, monitor, and external drive needed its own cable and port shape, forcing you to carry a bag of single-purpose adapters. Once manufacturers agreed on one shared plug, any compatible host could talk to any compatible peripheral without custom wiring.

An MCP server for AI does the exact same job for software integrations. It wraps a data source or action, such as a stock screener or regulatory filing database, behind one standard interface that any compatible AI client can discover and invoke.
Three Parties in Every MCP Connection
Every working setup separates responsibilities across three distinct layers, keeping credentials and business logic out of the language model itself:
- The AI client: The assistant interface the person types into, such as Claude Desktop, ChatGPT, or Cursor. It translates human questions into structured tool calls and formats the returned facts into readable answers.
- The MCP server: The controlled adapter sitting in the middle. It advertises available capabilities, checks incoming inputs, attaches authentication, and enforces permissions outside the model's reach.
- The upstream API: The authoritative backend service that stores filings, runs financial calculations, and holds the source of truth.
Without a shared standard, connecting five AI assistants to ten internal tools requires fifty separate custom integrations, each breaking whenever an endpoint changes. With a shared server, each tool exposes one MCP interface and every compliant client can speak to it immediately.
Anthropic published the Model Context Protocol as an open standard in late 2024, releasing open-source Python and TypeScript SDKs so developers could build servers without reverse-engineering a proprietary format. That decision mattered. Because the specification and SDKs are open, one team can write a screening server once, and any client that implements the protocol can use it without negotiating a custom contract.
The middle layer is also where governance lives, which is why treating it as a trust boundary pays off. The server decides which tools the model may see, which parameters it accepts, and what shape each answer takes before any of it reaches the user. If a screening verdict comes back with missing fields, the server can label the gap as a null rather than letting the model read it as a zero and report a clean pass. A zero says the analyst measured something and found none of it; a null says nobody measured it at all. Collapsing that distinction inside the adapter is how confident wrong answers get manufactured.
For developers who want an extra walkthrough of how host apps negotiate the connection handshake under the hood, the agentcentral explainer on MCP servers lays out the client-server messaging flow clearly. Once you can point to the client, the server, and the upstream API in any architecture diagram, you can also point to exactly where trust gets enforced: the adapter, never the model.
Resources, Prompts and Tools Compared
An MCP server doesn't lump every capability into one bucket. It splits what it exposes into three distinct primitives based on who triggers them and how much control the language model gets.
| Primitive | Who triggers it | What it provides | Akinda example |
|---|---|---|---|
| Resources | The application or host loads it | Structured reference data the model can read | Methodology definitions and threshold references |
| Prompts | The user selects it | Reusable instructions or workflow templates | A standard portfolio review workflow |
| Tools | The model invokes it, with user approval for consequential actions | Executable functions that fetch or calculate | akinda_check_compliance for one ticker |
Resources act like read-only reference files that the host application loads into context before the model answers. In Shariah screening work, static methodology rulebooks, threshold tables, and denominator definitions belong here because the model only needs to read them, not execute code against them.
Prompts are saved workflow templates that a human picks deliberately from a menu. A recurring quarterly portfolio audit fits neatly as a prompt: the analyst triggers the template, and the assistant follows a consistent sequence of checks instead of improvising a different review each quarter.
Tools are executable functions the model chooses to call on its own when it needs fresh data or a calculation. Running a compliance check, pulling a filing breakdown, or calculating dividend purification all belong in tools with explicit parameters for ticker, market, and methodology.
Why Tools Carry the Sharpest Boundary Risk
Unlike resources and prompts, tools hand the trigger to a probabilistic model. When the assistant decides which function to call and fills in the arguments, a vague schema or ambiguous name can send the wrong ticker, the wrong exchange, or an unintended action straight to your backend.
A frequent mistake teams make during their first build is wrapping every single REST endpoint one-for-one as a separate MCP tool. Dumping dozens of overlapping tools into the model's context window eats token budget, blurs the boundaries between similar actions, and increases the odds of misfired calls.
Design a tight set of task-oriented tools with narrow, explicit inputs instead. Each tool should match one clear job a user asks for, returning structured fields rather than raw database dumps.
Pre-build design test: Before exposing any capability over MCP, ask three questions. Who should trigger it, does it alter state anywhere, and does it return passive reference text or an authoritative verdict?
How an AI Assistant Reaches Tools Through MCP
Tracing a single question from the user's keyboard to the database and back makes the protocol's trust boundary concrete. Say an advisor asks an assistant whether a US-listed semiconductor ticker passes Shariah screening under AAOIFI rules.
The diagram below traces the five core stages that carry that question from connection to sourced answer.

Under the hood, that round trip unfolds across six distinct operational steps:
- Client connects and discovers capabilities: The AI client opens a session with the MCP server and requests its catalog of available tools.
- Server advertises schemas: The server replies with each tool's name, concise description, and typed input schema, establishing the capability boundary laid out in the official MCP server specification. Now the client knows exactly what functions exist and which parameters they require.
- Model selects a tool and fills arguments: Reading the user's question against those schemas, the language model picks the right deterministic function (such as a stock compliance check) and populates structured inputs like ticker symbol and methodology.
- Client dispatches the tool call: The client packages those arguments and sends the invocation to the server. Remote MCP servers accept traffic over HTTP
POST, so typing the endpoint URL into a browser sends aGETrequest and returns405 Method Not Allowed, which is normal behavior rather than an outage. - Server validates, authenticates, and calls upstream: The server checks every parameter against its schema, injects stored credentials, queries the upstream API, normalizes nulls, logs a request ID, and applies rate limits. If you want to compare how direct REST integrations manage authentication headers and response parsing without an AI layer in front, look through this API integration example.
- Assistant explains the sourced result: The server hands back both the compliance verdict and its supporting financial ratios. Because the underlying figures arrive alongside the classification, the model can explain the outcome in plain English without inventing missing numbers.
Pinpointing Faults Across the Request Chain
Step 5 does the heaviest security and reliability lifting in the entire flow. Because API keys stay isolated on the server and every calculation executes upstream, the language model never sees raw credentials or unvalidated REST internals.
For a quick visual walkthrough of how clients negotiate tool schemas and execute requests across that boundary, watch the short overview below.
Whenever an assistant returns a suspicious answer, resist the urge to tweak your system prompt first. Debug by isolating which hop broke: check whether the client discovered the tool, inspect the exact arguments the model passed, verify the raw payload from the upstream call, and only then look at how the model phrased its final explanation.
Security Risks to Plan For Before You Connect
A portfolio screener asks whether a holding is compliant. The assistant calls a remote tool, then reads the tool description and the returned note the same way it reads your own instructions. That is the trust boundary. A connector is not a dumb pipe that only shuttles JSON. Descriptions, input-schema text, and return payloads land in the context window verbatim, so an untrusted server can steer the next action.
The ACM security measurement study on MCP points out that security controls remain largely implementation-defined, and cites a benchmark showing a 72.8% tool-poisoning attack success rate on the evaluated o1-mini configuration.
The attack path is simple. A compromised or malicious server hides a directive inside a tool description or a returned text field, such as an earnings note. The model treats that hidden sentence as guidance. It can exfiltrate data, invoke a different tool, or rewrite arguments on the next turn.
A screening verdict has to carry its own evidence, or the model will fill the gap. Methodology, a timestamp, and the difference between null (not reported) and zero (reported as none) belong in the payload. Without them, a poisoned sentence in an earnings note can look as authoritative as a calculated ratio. Human approval on the next call does not fix a verdict that already lost that meaning.
Multi-server deployments widen the blast radius. An arXiv study on MCP security governance documented three protocol-level gaps, including missing capability attestation, server-side prompt injection through bidirectional sampling, and implicit trust propagation across connected servers, measuring 23% to 41% higher attack success rates than comparable non-MCP integrations across 847 controlled attack scenarios and five implementations. One server's text becomes the next server's assumed context. Capability is inferred, not attested.

Pre-Launch Security Checklist for MCP Servers
Before you point any production assistant at a remote server, run your implementation against these controls:
- Treat every description and response as untrusted input: Write strictly factual, non-instructional tool descriptions, and cap response sizes so oversized payloads cannot flood context or smuggle hidden prompts.
- Validate inputs against strict schemas and allowlists: Reject unexpected types on the server side, and lock markets, methodologies, and endpoint actions to explicit allowlists.
- Gate consequential operations behind human approval: Require explicit user confirmation before any state-changing action, and block one tool's output from automatically authorizing another tool call.
- Lock down transport, credentials, and logs: Enforce server authentication and TLS on every remote connection, issue least-privilege API keys, and record immutable audit logs tagged with request IDs.
- Run adversarial regression tests: Include poisoned tool descriptions and hostile financial text strings in your automated test suite before launch.
Security teams looking to layer tighter credential isolation and prompt-injection filtering onto these basics can consult the Molted Email guide to MCP safeguards for complementary threat-modeling patterns.
A compliance verdict must always trace back to validated API data, never to instructions smuggled inside tool metadata or improvised by a language model. The payload should state the methodology, the timestamp, and whether a missing figure is null or zero.
Connecting Akinda's MCP Server to Your AI Client
Connecting an assistant to Akinda starts with one remote endpoint, `https://b2b-api.akinda.io/mcp`, which communicates via Streamable HTTP over POST. Our server runs statelessly, so any backend instance handles any incoming request cleanly without sticky sessions.
Before editing client settings, confirm that your Akinda account has active tool-call access enabled, because completing an OAuth sign-in alone doesn't prove your account can execute screened queries. Once that's ready, walk through the setup steps for your preferred client:
- Open your client's connector settings: Launch Claude, ChatGPT, or Cursor and locate the custom MCP connector, plugin, or local JSON configuration panel.
- Connect in Claude: Create a new custom connector, enter a recognizable name along with the Akinda server URL, and leave Advanced settings completely blank because Claude registers itself automatically. Click Connect and finish signing in with Google.
- Connect in ChatGPT: Open Security and login and turn on Developer mode first, since ChatGPT hides custom MCP setup until that toggle is active. Add the plugin, set Authentication to OAuth, and click Create to authorize the link.
- Connect in Cursor: Add an
mcp.jsonconfiguration file either inside your repository or in your global Cursor folder, supplying your staticX-API-Keyheader. Unlike short-lived OAuth sessions, static keys stay valid until revoked, so keepmcp.jsonout of Git commits and rotate the key right away if it ever leaks. - Test with one known ticker: Ask the assistant to run a compliance check on a familiar stock like Apple or Microsoft, then check your Akinda developer dashboard to verify the metered tool call logged cleanly.
Fast Triage When a Connection Fails
When a new connection misbehaves, narrow the fault by stage instead of deleting and re-adding the connector blindly. If your AI client lists the available tools properly during discovery but every actual call returns an error, inspect your account permissions or X-API-Key value first.
If no tools show up at all after saving the configuration, verify there isn't a trailing typo in the endpoint URL and confirm your client is sending Streamable HTTP over POST rather than falling back to legacy transport settings. Developers wiring live MCP tools into broader graph-backed retrieval stacks can also look at how GraphRAG over MCP tool calls coordinates multi-step context lookup across connected servers.
Akinda's Five Tools for Shariah Screening Workflows
Once connected, Akinda exposes five read-only tools designed around distinct stages of investment research and compliance review. Each tool maps to a specific question an analyst or robo-advisor needs answered, rather than dumping raw REST routes onto the model.
| Tool | Screening step | What it returns |
|---|---|---|
akinda_check_compliance |
Quick verdict on one ticker | Compliance verdict |
akinda_basic_report |
Summary of the figures behind a verdict | Basic report of key figures |
akinda_full_report |
Audit a challenged verdict | Full report with AI-extracted figures and dollar values |
akinda_screen_portfolio |
Screen a list of holdings | Verdicts across the holdings |
akinda_calculate_purification |
Size the purification amount | Purification figure for non-compliant income |
The checklist below summarizes how those five capabilities fit together across a complete compliance workflow.

Watch how a single holding moves through the sequence. An analyst starts with akinda_check_compliance to get an immediate pass or fail verdict on one ticker, then calls akinda_basic_report to see the underlying debt, liquidity, and prohibited revenue figures driving that decision. If a Shariah board member or client challenges the number, the analyst escalates to akinda_full_report to inspect extracted revenue lines and dollar amounts, runs akinda_screen_portfolio across the rest of the client's holdings, and finishes with akinda_calculate_purification to quantify how much dividend income requires charitable purification.
Freshness stays tight behind those calls because our AI-powered filing analysis runs within 48 hours of new filing submissions across SEC, UK Companies House, and Canadian reports. If you want to see how the underlying JSON fields compare when consumed directly by backend code, review our overview of the stock screener API.
Fields Every Defensible Verdict Must Carry
Speaking valid JSON-RPC doesn't make an answer safe for investment decisions. As ongoing roadmap updates on the Model Context Protocol specification blog show around stateless cores, cacheable tool lists, and enterprise authorization, protocol compatibility is separate from data correctness. A server can follow every transport rule while still handing an assistant outdated or methodology-mismatched numbers.
To keep an AI assistant from presenting weak data as settled advice, every screening response must carry four explicit context markers alongside the verdict:
- Screening standard and methodology ID: Our primary rule set follows AAOIFI Shari'ah Standard No. 21, enforcing a 5% ceiling on prohibited revenue and a 30% ceiling on interest-bearing debt and cash measured against a twelve-quarter average market capitalisation, while also exposing parallel results under Dow Jones Islamic Market, FTSE Shariah, MSCI Islamic, and S&P Shariah rules.
- Data timestamp and filing period: Tells the assistant exactly when the underlying filing was processed so stale quarterly numbers aren't presented as today's balance sheet.
- Coverage percentage: Signals whether enough constituent or filing data exists to classify the holding, returning an unrated result instead of a silent pass whenever coverage falls short.
- Strict null-versus-zero meaning: A
nullmeans a metric wasn't computed, whereas0means the calculation confirmed zero. Assistants must never convert anullinto a compliant zero.
One practical safeguard belongs in every research policy: figures inside akinda_full_report are AI-extracted from regulatory filings, so analysts should always cross-check those extracted dollar lines against the original filing PDF before finalizing high-stakes committee rulings.
Decision-readiness check: Before acting on any AI-generated compliance summary, confirm the output carries its methodology identifier, filing timestamp, coverage percentage, and unambiguous null handling.
Deciding Whether an MCP Layer Fits Your Product
Rapid protocol growth makes it tempting to wrap every internal API in an MCP server right away. Ecosystem metrics argue for a more selective approach: a 2025 O'Reilly analysis of MCP in practice examined 2,874 MCP servers and found attention heavily concentrated, with the top 10 servers holding 45.7% of GitHub stars and the top 10% capturing 88.3%, even as Anthropic reported over 97 million monthly MCP SDK downloads and more than 10,000 active servers within the protocol's first year. Public server counts alone don't guarantee production reliability, so let your product's actual risk profile drive the choice.
If your assistant only summarizes research notes or regulatory PDFs that analysts upload manually, a simple read-only resource or standard document retrieval setup is cleaner and introduces less attack surface. You don't need live tool execution when no live state or calculation is involved.
If your product runs live Shariah compliance checks on customer portfolios, computes dividend purification, or supports trading workflows, an MCP server for AI pays off when paired with strict schema validation, confirmation gates, and immutable audit logs. Teams evaluating how screening data plugs into user-facing fintech workflows can also read our practical guide to add Shariah compliance to your app.
On pricing and rate limits, Akinda's Personal Standard plan costs $20 per month at list price and includes 300 API calls per minute, 10 GB of monthly data, basic reports, and our remote MCP server for personal research across Claude, ChatGPT, and Cursor. Commercial applications require the Business Standard plan at $600 per month, which adds commercial-use rights, 1,000 API calls per minute, 100 GB of monthly data, full reports, and MCP access. Every tool invocation counts as one metered request against your plan on the same terms as the matching REST endpoint, and while free-tier accounts can sign in, tool calls return an upgrade notice.
Run one focused test this week before committing engineering sprints. Connect the endpoint to a single AI client, screen one ticker you already know inside out, and inspect the methodology ID, timestamp, and coverage fields in the reply to see whether the layer holds up as a real trust boundary for your product.
Akinda provides a Shariah compliance screening REST API and remote MCP server covering more than 16,500 stocks and ETFs with transparent filing metrics, parallel methodologies, and read-only tools built for Claude, ChatGPT, and Cursor. Whether you're prototyping a personal research assistant or building a regulated halal investing product, you can inspect our endpoints, screening methodology, and MCP documentation directly at Akinda.
