Connect WordPress & Business Data to ChatGPT & Claude (MCP)

How do you connect WordPress and business data to ChatGPT or Claude?

Put a Model Context Protocol server between the assistant and approved data sources. Start with read-only tools for specific jobs such as searching published WordPress posts or looking up a permitted record. Authenticate users, check permissions on each request and return source references the team can verify. Pilot the connection with limited data in both clients before broader rollout.

Assistant requests → MCP checks access → Source returns dataAssistant requestsMCP checks accessSource returns data
The MCP server applies identity, scope and result limits before returning evidence from a source.

1. Pick one business question and an authoritative source

Start with a task a person already understands. An editorial lead might ask which published help article explains a feature. A support lead might need the status of an approved test account. Write the task next to its source, data owner, allowed roles and expected fields. Define what the assistant should do when the source is unavailable or when a caller has no permission. A narrow starting task makes these cases manageable.

An MCP server publishes descriptions of tools and how to call them. The host, such as ChatGPT or Claude, can discover those tools and return their results to the model. Your service is responsible for mapping a request to an authorised operation, querying the source and returning an understandable answer shape. For background on the interaction, see INGOAMPT’s introduction to MCP.

Write down what can leave the source and enter the assistant context. The fact that your service can fetch a field does not make that field relevant to the question. Choose approved fields and result limits. A title, a link, a short excerpt and a modification timestamp are often enough for a public article lookup. Leave private editorial notes and account fields out of that tool’s response contract.

2. Define narrow, read-only tools and adapters

For WordPress, introduce a tool such as search_published_articles that accepts a short query, an approved category and a small result limit. On the server, use the WordPress REST API or a documented application interface to request published content and project only approved fields. An exact lookup can accept a known public identifier. Check publication status and visibility again before returning the record. WordPress REST posts reference.

For SQLite, use an approved snapshot or service-owned database and open it read-only. Give the service operating-system access only to the intended data. A tool such as get_catalog_item can accept a product ID and use a fixed, parameterized query that returns a short field list. For PostgreSQL, use a dedicated least-privilege role and scope rows to the caller through application and database controls. Use row-level security where appropriate and verify behaviour under the actual service role. SQLite read-only modes and PostgreSQL row security.

For an internal API, wrap a named operation around the API route and pass only validated arguments. Put a timeout and a maximum response size on the request. Return a clear status for success, absence or temporary unavailability. Keep credentials in the server’s approved secret store. Give the model the result and evidence handle, while the adapter retains control of endpoint selection and request construction.

3. Apply identity and scope at each layer

For private tools, use the host and protocol’s documented authorisation flow with an approved identity provider. Validate each incoming token for the intended MCP resource and applicable scope. Bind the caller’s identity to a service-side account or tenant and check that identity against the requested object. A model-supplied tenant ID is an input to validate, while the trusted tenant binding comes from the authenticated identity. MCP authorisation specification.

Layer the access checks. The host can govern which workspace members see the connector. The MCP server can govern which operations and records the caller can request. The WordPress adapter, API scope or database role can keep access narrow even if a higher-level check fails. For reusable connectors, document who approves the configuration and how a user’s access is removed when their role changes.

Use a separate credential or exchange appropriate for each downstream system and follow the protocol’s guidance on token audiences. Apply per-user access when the sources contain private data. A shared service account may work for a corpus available to every pilot user, provided its permissions are limited and the server still records who requested each result. Test expiry, revocation and scope changes with pilot accounts.

4. Connect a staging server to each assistant

Start with a staging HTTPS endpoint and public or synthetic data. On ChatGPT, check current workspace eligibility and admin controls. OpenAI’s current guide documents adding a custom MCP server from Plugins, configuring authentication and reviewing the discovered tools. Supported workspaces can also use a Secure MCP Tunnel when applicable. Review tool names, inputs and descriptions from the pilot account before expanding access. OpenAI custom MCP setup.

For Claude, check the current custom connector instructions for the chosen plan and workspace. A remote custom connector runs through Anthropic’s infrastructure, so the configured server endpoint needs to be reachable from that service. Use the connector settings to supply the staging endpoint, review authentication and connect as a pilot user. Confirm whether the connector shares a credential or requests each user’s authorisation. Claude remote MCP setup.

Ask the same small set of questions in both clients. Record whether the tool is discovered, called with valid arguments and able to return the exact evidence you expect. Test timeouts, an empty search and an authorised identity with limited visibility. If a host prefers another tool or invents an answer after a failed lookup, adjust descriptions, limit the enabled tools and check whether users can see when the answer lacks evidence.

5. Make evidence checkable and access auditable

Return a source identifier, stable link where available, retrieval time and a short evidence excerpt. For an internal record, use a URL or reference that an authorised user can open. Label snapshots with their collection time. Ask the assistant to state which source it used and say when no supporting record came back. In the pilot, click each source and verify that its text or fields support the claim.

Log a request ID, actor, tool, decision, result count and timing with suitable retention controls. Avoid logging secret values or unrelated record contents. If a response seems wrong, trace the request and confirm which scope check ran and which version of the source supplied the evidence. Measure whether a failed query was denied, timed out or returned no match so you can troubleshoot without guessing.

Treat retrieved page text and records as data. A web page can contain words that resemble instructions. Keep tool permissions, destination choices and data-sharing limits in your own service. Test that irrelevant text in a fixture does not change access decisions. Return an explicit no-evidence result when nothing supports the answer. INGOAMPT’s guide to citations and MCP.

Worked example: a product policy and account check

An employee asks whether a feature is generally documented and enabled for a particular test account. The WordPress tool returns the public help article with a dated excerpt. The internal entitlement tool returns only the status for the account the employee is allowed to view, including a checked-at time. The assistant cites each source alongside the claim it supports. The public article establishes general behaviour. The live result establishes the account state.

If the caller is allowed to see the public article but cannot access the test account, the second tool should return the agreed restricted outcome without exposing account fields. The answer can link to the public guidance and say it could not verify account access. A reviewer can open the public link and use the request ID to have an authorised operator investigate the lookup.

Use this case as a release check. Repeat it with an updated policy, an expired session and an API timeout. Compare answers in ChatGPT and Claude. Define when the pilot is ready, how to disable the connector and whom to contact when an evidence link is broken. Expand to new tools only after the team can explain the scope and the provenance of the first ones.

Compare ways to connect business data to an assistant

ApproachBest fitControls to verify
Direct document attachmentOne-off analysis of an approved fileData handling, file scope and expiry
Read-only MCP toolRepeatable lookup against a current sourceCaller identity, field limits, citations and audit records
Search index behind MCPMany approved documents across sourcesPermission filters, update lag and deletion propagation
Scoped internal API adapterCurrent status or a small standard responsePer-user access, schema validation and timeouts

Frequently asked questions

Can ChatGPT and Claude use the same MCP server?

Yes, if the server’s transport, authentication and tool definitions are compatible with both clients. Check the current plan and workspace requirements and test each connection separately.

Should I expose a full WordPress admin credential or SQL console?

Use narrow tools with approved operations and limited credentials. A published article search or parameterized record lookup provides a smaller and easier-to-audit surface.

Does MCP guarantee that every citation is correct?

No. A tool can return verifiable evidence, but the response can still misread it. Check the claim against the source and test the no-evidence case.

What should I log for a read-only connector?

Record a request ID, caller, tool, access decision, result count and timing. Avoid logging credentials and unnecessary private record contents.

Leave a reply

Your email address will not be published. Required fields are marked *