Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

Practical MCP setup guide

Install Model Context Protocol servers safely on Claude Desktop, Claude Code, Claude.ai or ChatGPT—with commands, authentication, verification, security checks and troubleshooting.

By Trend Transformers Editorial Team — Published 18 July 2026 — Reviewed against current OpenAI, Claude and MCP documentation.

Secure local and remote MCP installation paths connecting AI assistants to business data
Claude supports local and remote MCP routes; ChatGPT connects to remote endpoints.
Short answer: Claude Desktop users install reviewed Extensions; Claude Code users run claude mcp add for local stdio or remote HTTP/SSE servers. ChatGPT users enable developer mode and create a custom app pointing to a remote MCP endpoint. ChatGPT cannot directly run a local stdio MCP server.

Understand the four parts

MCP is an open standard that lets an AI client discover and call tools exposed by a server.

ClientClaude or ChatGPT.
ServerThe integration exposing approved tools.
TransportLocal stdio or remote HTTP/SSE.
AuthenticationOAuth, service account, API key or environment variables.

Choose the right installation route

Client Local Remote Best route Limitation
Claude Desktop Yes Supported connectors Settings → Extensions or .mcpb Admin policy may block extensions.
Claude Code stdio HTTP/SSE claude mcp add Never commit secrets.
Claude.ai No direct process Plan-dependent Connector settings Admin controls vary.
ChatGPT web Not directly Yes Developer mode → Apps → Create Remote endpoint required.
Plan check: OpenAI currently documents full MCP beta for ChatGPT Business and Enterprise/Edu on web. Pro users can connect custom MCPs with read/fetch permissions in developer mode; full write-capable MCP remains plan-limited.

Vet the server first

  • Prefer official or vendor-maintained repositories.
  • Check owner, license, releases, dependencies and security issues.
  • Review every tool and OAuth scope.
  • Start read-only with least-privilege credentials.
  • Confirm credential and data storage.
  • Pin a reviewed production version.

For real SEO examples, see our guide to Claude SEO with Search Console, Keyword Planner, Screaming Frog and Analytics MCPs.

Install an MCP on Claude Desktop

Extensions directory

  1. Update Claude Desktop.
  2. Open Settings → Extensions → Browse extensions.
  3. Review publisher, tools, permissions and write capabilities.
  4. Select Install and complete required account/API fields.
  5. In chat select + → Connectors to verify tools.

Custom extension

  1. Obtain a trusted .mcpb package.
  2. Open Settings → Extensions → Advanced settings.
  3. Select Install Extension….
  4. Configure it, restart if needed and inspect logs.
Secrets: Claude documents encrypted OS storage for extension fields marked sensitive. You must still trust the server receiving them.

Manual local configuration

{
  "mcpServers": {
    "example": {
      "command": "npx",
      "args": ["-y", "@publisher/example-mcp"],
      "env": {"EXAMPLE_API_KEY": "set-securely"}
    }
  }
}

Use absolute executable paths if the app cannot find npx, uvx or Python. Fully quit and reopen Claude Desktop after manual edits.

Install an MCP on Claude Code

Local stdio

claude mcp add --transport stdio example   -- npx -y @publisher/example-mcp

The double dash separates Claude flags from the server command.

Python/uvx

claude mcp add --transport stdio search-console   -- uvx mcp-search-console

Environment variables

claude mcp add --transport stdio example   --env EXAMPLE_API_KEY=your_key   -- npx -y @publisher/example-mcp
Never commit secrets. A shared .mcp.json should reference environment variables, not contain credentials.

Remote HTTP and SSE

claude mcp add --transport http remote-tools   https://mcp.example.com/mcp

claude mcp add --transport sse legacy-stream   https://mcp.example.com/sse

For OAuth remote servers, use /mcp inside Claude Code to authenticate.

Scopes and management

Scope Use Visibility
local You/current project Private project-specific config
project Shared team definition .mcp.json; users approve it
user Across projects Private user config
claude mcp add --transport http --scope project team-tools   https://mcp.example.com/mcp

claude mcp list
claude mcp get team-tools
claude mcp remove team-tools
Windows: native Windows may require cmd /c: claude mcp add my-server -- cmd /c npx -y @publisher/example-mcp.

Install an MCP app in ChatGPT

ChatGPT does not accept a local npx or uvx command. It connects to a remote MCP endpoint through a custom app.

1. Confirm access

Use ChatGPT web. Workspace admins must allow developer mode/custom apps. Business deployment is admin/owner controlled; Enterprise/Edu can use RBAC.

2. Enable developer mode

  1. Open Settings or Workspace Settings.
  2. Go to Apps → Advanced Settings, or Permissions & Roles → Connected Data.
  3. Enable developer mode/Create custom MCP connectors.

3. Prepare the endpoint

Deploy a reviewed HTTP-capable MCP server with authentication. If it only supports stdio, host or adapt it first. OpenAI documents Secure MCP Tunnel for supported products when private infrastructure should not be exposed publicly.

4. Create and test the app

  1. Open Settings → Apps → Create.
  2. Enter name, description and remote endpoint.
  3. Select authentication and complete OAuth/credentials.
  4. Review discovered read, write, delete, publish and messaging tools.
  5. Test privately before workspace publication.
  6. Restrict users/actions, connect it, then invoke with @ or the app menu.
Responsibility: OpenAI states workspaces must vet custom and third-party apps. Confirmation prompts do not replace access design or code review.

Worked example: Search Console

The community AminForou/mcp-gsc project exposes Search Console analytics, inspection and sitemap tools. Follow its current README for package and credential variables.

Claude Code

  1. Enable Search Console API in Google Cloud.
  2. Create OAuth desktop credentials or a service account.
  3. Grant access to the intended property.
  4. Add the server with its documented uvx command and environment variable.
  5. Run claude mcp list, open /mcp, and test by listing properties.

ChatGPT

A local stdio install is insufficient. Use a reviewed hosted endpoint or deploy remote transport, then register it as a custom app. Never give desktop OAuth secrets to an untrusted host.

Test safely

  1. “List available tools; do not call them.”
  2. Run a harmless read-only list.
  3. Confirm the returned scope.
  4. Request proposed tool arguments before execution.
  5. Test writes only on disposable data with confirmation.
  6. Review logs and revoke unused credentials.
Healthy setup: Connected status, expected tools and a low-risk read returning only authorised data.

Troubleshooting

Problem Cause Fix
Server missing Wrong scope/not reloaded Restart; run list; inspect settings.
Command not found GUI PATH/runtime Use absolute paths; test command.
Tools fail API/account/scope Test upstream API; inspect logs.
OAuth fails Stale token/callback Clear auth; retry via /mcp.
ChatGPT rejects it Local stdio supplied Deploy HTTP or supported tunnel.
Extension blocked Organisation policy Request admin allowlisting.
New unexpected tools Server update Disable, review, refresh controls.

Production checklist

  • Use read-only first.
  • Separate development/production credentials.
  • Restrict scopes, roles, sites and directories.
  • Keep deletes, publishing, payments and messages behind approval.
  • Assess prompt injection when reading email, documents or web pages.
  • Log calls and maintain rollback paths.
  • Remove unused servers and revoke tokens.

See how AI agents can manage WordPress through controlled tools, explore the AI marketing automation stack, or review our SEO and GEO service.

Frequently asked questions

Can one MCP work on Claude and ChatGPT?

Yes if it offers compatible transports. Claude Code supports local or remote servers; ChatGPT needs remote.

Can ChatGPT connect directly to local MCP?

No. It uses remote MCP servers; a supported tunnel can bridge private infrastructure.

Do I need Node or Python?

It depends on the server. Extensions may bundle requirements; manual servers may need Node, Python, uvx, Docker or a binary.

Where should API keys live?

Secure client fields, OS credential storage or environment variables—not shared configuration.

Why Claude Code but not ChatGPT?

Usually transport: stdio works in Claude Code, while ChatGPT requires remote HTTP.

Should I use third-party MCPs?

Only after reviewing code, maintainer, dependencies, scopes, credentials and release history.

Official sources and implementations

Need help choosing a secure MCP stack?

Trend Transformers connects SEO, analytics, websites and marketing tools with clear permissions and verification.

Discuss your MCP setup