582 pages for environment.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Security Best Practices
Model Context Protocol · in the page
docs/2025-06-18/tutorials/security/security_best_practices
…elated URLs. Which protections are appropriate depend on your network environment. **Enforce HTTPS** MCP clients **SHOULD** require HTTPS for all OAuth-related URLs in production environments: * Re…
Build an MCP client
Model Context Protocol · in the page
docs/2025-11-25/develop/build-client
…installed > * Latest version of `uv` installed > > ## Setting Up Your Environment > > First, create a new Python project with `uv`: > > ```bash macOS/Linux theme={null} > # Create project directory >…
Build an MCP server
Model Context Protocol · in the page
docs/2025-11-25/develop/build-server
…You must use the Python MCP SDK 1.2.0 or higher. > > ### Set up your environment > > First, let's install `uv` and set up our Python project and environment: > > ```bash macOS/Linux theme={null} > cu…
Client Best Practices
Model Context Protocol · in the page
docs/2025-11-25/develop/clients/client-best-practices
…model writes code that calls tools. The code executes in a sandboxed environment, and only the final result returns to the model. Programmatic tool calling is powerful and allows for more efficient…
Connect to remote MCP Servers
Model Context Protocol · in the page
docs/2025-11-25/develop/connect-remote-servers
…te MCP servers extend AI applications' capabilities beyond your local environment, providing access to internet-hosted tools, services, and data sources. By connecting to remote MCP servers, you trans…
Architecture overview
Model Context Protocol · in the page
docs/2025-11-25/learn/architecture
…his notification system is crucial for several reasons: 1. **Dynamic Environments**: Tools may come and go based on server state, external dependencies, or user permissions 2. **Efficiency**: Clients…
Debugging
Model Context Protocol · in the page
docs/2025-11-25/tools/debugging
…] } } } ``` Instead of relative paths like `./data` ### Environment variables MCP servers launched over stdio inherit only a limited subset of environment variables automatically (the e…
MCP Inspector
Model Context Protocol · in the page
docs/2025-11-25/tools/inspector
…or local servers, supports customizing the command-line arguments and environment ### Resources tab * Lists all available resources * Shows resource metadata (MIME types, descriptions) * Allows reso…
Understanding Authorization in MCP
Model Context Protocol · in the page
docs/2025-11-25/tutorials/security/authorization
…o its APIs that require user consent * You're building for enterprise environments with strict access controls * You want to implement rate limiting or usage tracking per user > [!TIP] > > **Authoriz…
Security Best Practices
Model Context Protocol · in the page
docs/2025-11-25/tutorials/security/security_best_practices
…elated URLs. Which protections are appropriate depend on your network environment. **Enforce HTTPS** MCP clients **SHOULD** require HTTPS for all OAuth-related URLs in production environments: * Re…
Build an MCP client
Model Context Protocol · in the page
docs/2026-07-28/develop/build-client
…ou must use the Python MCP SDK 2.0.0 or higher > > ## Setting Up Your Environment > > First, create a new Python project with `uv`: > > ```bash macOS/Linux theme={null} > # Create project directory >…
Build an MCP server
Model Context Protocol · in the page
docs/2026-07-28/develop/build-server
…You must use the Python MCP SDK 2.0.0 or higher. > > ### Set up your environment > > First, let's install `uv` and set up our Python project and environment: > > ```bash macOS/Linux theme={null} > cu…
Client Best Practices
Model Context Protocol · in the page
docs/2026-07-28/develop/clients/client-best-practices
…model writes code that calls tools. The code executes in a sandboxed environment, and only the final result returns to the model. Programmatic tool calling is powerful and allows for more efficient…
Connect to remote MCP Servers
Model Context Protocol · in the page
docs/2026-07-28/develop/connect-remote-servers
…te MCP servers extend AI applications' capabilities beyond your local environment, providing access to internet-hosted tools, services, and data sources. By connecting to remote MCP servers, you trans…
Architecture overview
Model Context Protocol · in the page
docs/2026-07-28/learn/architecture
…his notification system is crucial for several reasons: 1. **Dynamic Environments**: Tools may come and go based on server state, external dependencies, or user permissions 2. **Efficiency**: Clients…
Debugging
Model Context Protocol · in the page
docs/2026-07-28/tools/debugging
…] } } } ``` Instead of relative paths like `./data` ### Environment variables MCP servers launched over stdio inherit only a limited subset of environment variables automatically (the e…
MCP Inspector
Model Context Protocol · in the page
docs/2026-07-28/tools/inspector
…> Catalog vs. config files, the full per-client flag reference, and > environment variables. > [card] [Authorization](https://modelcontextprotocol.io/docs/2026-07-28/tools/inspector/authorization.md)…
Authorization
Model Context Protocol · in the page
docs/2026-07-28/tools/inspector/authorization
…NSPECTOR_OAUTH_STATE_PATH`, then `<MCP_STORAGE_DIR>/oauth.json` (see [Environment variables](https://modelcontextprotocol.io/docs/2026-07-28/tools/inspector/configuration.md#environment-variables)), t…
Configuration and flags
Model Context Protocol · in the page
docs/2026-07-28/tools/inspector/configuration
…> Catalog vs. config files, which client owns which flag, and every environment variable The `mcp-inspector` binary is a launcher: it reads two flags of its own and forwards every other argument to…
mcpdo connection client
Model Context Protocol · in the page
docs/2026-07-28/tools/inspector/mcpdo
…SSE servers run no local code, so they need no process isolation. ## Environment variables `mcpdo` reads the same catalog, storage and secret-store variables as the other clients (see [Environment v…
Recipes
Model Context Protocol · in the page
docs/2026-07-28/tools/inspector/recipes
…parsed by the Inspector and never reach the server. Give the process environment variables with `-e` and a working directory with `--cwd`: ```bash theme={null} mcp-inspector -e API_KEY=abc123 -e REG…
Security
Model Context Protocol · in the page
docs/2026-07-28/tools/inspector/security
…ECTOR_SECRET_KEY_FILE` (a Docker or Compose secret) rather than as an environment variable: a key passed with `-e MCP_INSPECTOR_SECRET_KEY=…` is visible to anyone who can run `docker inspect` or `dock…
TUI client
Model Context Protocol · in the page
docs/2026-07-28/tools/inspector/tui
…as the web client. Use it on a remote host over SSH, in a locked-down environment, or when you prefer to stay in the terminal. ```bash theme={null} npx @modelcontextprotocol/inspector --tui node buil…
Web client
Model Context Protocol · in the page
docs/2026-07-28/tools/inspector/web
…. `sessionStorage`, as a backstop. Set the `MCP_INSPECTOR_API_TOKEN` environment variable to pin a known token (useful for scripted launches), or set `DANGEROUSLY_OMIT_AUTH=true` to disable the check…
Understanding Authorization in MCP
Model Context Protocol · in the page
docs/2026-07-28/tutorials/security/authorization
…o its APIs that require user consent * You're building for enterprise environments with strict access controls * You want to implement rate limiting or usage tracking per user > [!TIP] > > **Authoriz…
Local Server Security
Model Context Protocol · in the page
docs/2026-07-28/tutorials/security/local-server-security
…t as a child process of your user account. That process inherits your environment variables, can read anything your account can read — SSH keys, cloud credentials, browser profiles, your home director…
Security Best Practices
Model Context Protocol · in the page
docs/2026-07-28/tutorials/security/security_best_practices
…elated URLs. Which protections are appropriate depend on your network environment. **Enforce HTTPS** MCP clients **SHOULD** require HTTPS for all OAuth-related URLs in production environments: * Re…
Build an MCP client
Model Context Protocol · in the page
docs/draft/develop/build-client
…ou must use the Python MCP SDK 2.0.0 or higher > > ## Setting Up Your Environment > > First, create a new Python project with `uv`: > > ```bash macOS/Linux theme={null} > # Create project directory >…
Build an MCP server
Model Context Protocol · in the page
docs/draft/develop/build-server
…You must use the Python MCP SDK 2.0.0 or higher. > > ### Set up your environment > > First, let's install `uv` and set up our Python project and environment: > > ```bash macOS/Linux theme={null} > cu…
Client Best Practices
Model Context Protocol · in the page
docs/draft/develop/clients/client-best-practices
…model writes code that calls tools. The code executes in a sandboxed environment, and only the final result returns to the model. Programmatic tool calling is powerful and allows for more efficient…
Connect to remote MCP Servers
Model Context Protocol · in the page
docs/draft/develop/connect-remote-servers
…te MCP servers extend AI applications' capabilities beyond your local environment, providing access to internet-hosted tools, services, and data sources. By connecting to remote MCP servers, you trans…
Architecture overview
Model Context Protocol · in the page
docs/draft/learn/architecture
…his notification system is crucial for several reasons: 1. **Dynamic Environments**: Tools may come and go based on server state, external dependencies, or user permissions 2. **Efficiency**: Clients…
Debugging
Model Context Protocol · in the page
docs/draft/tools/debugging
…] } } } ``` Instead of relative paths like `./data` ### Environment variables MCP servers launched over stdio inherit only a limited subset of environment variables automatically (the e…
MCP Inspector
Model Context Protocol · in the page
docs/draft/tools/inspector
…> Catalog vs. config files, the full per-client flag reference, and > environment variables. > [card] [Authorization](https://modelcontextprotocol.io/docs/draft/tools/inspector/authorization.md) > >…
Authorization
Model Context Protocol · in the page
docs/draft/tools/inspector/authorization
…NSPECTOR_OAUTH_STATE_PATH`, then `<MCP_STORAGE_DIR>/oauth.json` (see [Environment variables](https://modelcontextprotocol.io/docs/draft/tools/inspector/configuration.md#environment-variables)), then t…
Configuration and flags
Model Context Protocol · in the page
docs/draft/tools/inspector/configuration
…> Catalog vs. config files, which client owns which flag, and every environment variable The `mcp-inspector` binary is a launcher: it reads two flags of its own and forwards every other argument to…
mcpdo connection client
Model Context Protocol · in the page
docs/draft/tools/inspector/mcpdo
…SSE servers run no local code, so they need no process isolation. ## Environment variables `mcpdo` reads the same catalog, storage and secret-store variables as the other clients (see [Environment v…
Recipes
Model Context Protocol · in the page
docs/draft/tools/inspector/recipes
…parsed by the Inspector and never reach the server. Give the process environment variables with `-e` and a working directory with `--cwd`: ```bash theme={null} mcp-inspector -e API_KEY=abc123 -e REG…
Security
Model Context Protocol · in the page
docs/draft/tools/inspector/security
…ECTOR_SECRET_KEY_FILE` (a Docker or Compose secret) rather than as an environment variable: a key passed with `-e MCP_INSPECTOR_SECRET_KEY=…` is visible to anyone who can run `docker inspect` or `dock…
TUI client
Model Context Protocol · in the page
docs/draft/tools/inspector/tui
…as the web client. Use it on a remote host over SSH, in a locked-down environment, or when you prefer to stay in the terminal. ```bash theme={null} npx @modelcontextprotocol/inspector --tui node buil…
Web client
Model Context Protocol · in the page
docs/draft/tools/inspector/web
…. `sessionStorage`, as a backstop. Set the `MCP_INSPECTOR_API_TOKEN` environment variable to pin a known token (useful for scripted launches), or set `DANGEROUSLY_OMIT_AUTH=true` to disable the check…
Understanding Authorization in MCP
Model Context Protocol · in the page
docs/draft/tutorials/security/authorization
…o its APIs that require user consent * You're building for enterprise environments with strict access controls * You want to implement rate limiting or usage tracking per user > [!TIP] > > **Authoriz…
Local Server Security
Model Context Protocol · in the page
docs/draft/tutorials/security/local-server-security
…t as a child process of your user account. That process inherits your environment variables, can read anything your account can read — SSH keys, cloud credentials, browser profiles, your home director…
Security Best Practices
Model Context Protocol · in the page
docs/draft/tutorials/security/security_best_practices
…elated URLs. Which protections are appropriate depend on your network environment. **Enforce HTTPS** MCP clients **SHOULD** require HTTPS for all OAuth-related URLs in production environments: * Re…
Build an MCP App
Model Context Protocol · in the page
extensions/apps/build
…setting enables ES module syntax. The `build` script uses the `INPUT` environment variable to tell Vite which HTML file to bundle. The `serve` script runs your server using `tsx` for TypeScript execut…
Enterprise-Managed Authorization
Model Context Protocol · in the page
extensions/auth/enterprise-managed-authorization
…ged Authorization > Centralized access control for MCP in enterprise environments via identity providers The Enterprise-Managed Authorization extension (`io.modelcontextprotocol/enterprise-managed-a…
OAuth Client Credentials
Model Context Protocol · in the page
extensions/auth/oauth-client-credentials
…sk: > > * Store secrets in a secrets manager, never in source code or environment files checked into version control. > * Rotate secrets on a regular schedule and immediately after any suspected compr…
Authorization Extensions
Model Context Protocol · in the page
extensions/auth/overview
…o authenticate without interactive user consent flows. * **Enterprise environments** often have centralized identity providers (IdPs) that enforce policy across all applications. Requiring employees t…
Extensions Overview
Model Context Protocol · in the page
extensions/overview
…erprise-managed-authorization.md) | Stable | Framework for enterprise environments requiring centralized access control. | ### MCP Apps > [card] [modelcontextprotocol/ext-apps](https://github.com/mo…
Tasks
Model Context Protocol · in the page
extensions/tasks/overview
…**Unreliable connections.** Mobile clients, intermittent networks, or environments where connections drop. Task IDs survive disconnects. **Batch processing.** Operations that process many items (bulk…