TABLE OF CONTENTS
Overview
The Stack Internal MCP server lets AI agents securely access all connected sources of knowledge in Stack Internal. Agents can request the context they need directly from Stack Internal to answer questions, summarize information, and take supported actions using trusted enterprise knowledge. All the while MCP server preserves permissions, source identity, and governance.
The MCP server URL differs based on where the workspace you're connecting to is hosted. The default MCP URL is https://mcp.stackinternal.com. If the workspace you're connecting to is hosted in the EU, use https://mcp.eu.stackinternal.com.
Choose an authentication method
Use browser sign-in when a person is using an MCP client and needs access based on their own Stack Internal permissions.
For an unattended integration, use a service account when the MCP client and the available MCP tools support machine credentials. A service account is a workspace-bound machine identity. It does not inherit the permissions or private-source access of the administrator who creates it.
To use a service account:
- Have a workspace administrator create the account and grant only the permissions the integration needs.
- Create a credential and store the client ID and secret in an approved secret store.
- Use the client credentials flow to obtain an access token.
- Configure the supported MCP client to send the token as a bearer token.
- Renew the token before it expires, and rotate or revoke credentials when needed.
For detailed setup, permission, token, rotation, and revocation guidance, see the Service Accounts article.
Do not assume that every MCP client or MCP tool supports Service Account authentication. Confirm support before configuring an unattended integration.
Connect to the Stack Internal MCP server
This guide walks you through connecting your AI tool to the Stack Internal MCP server using the Model Context Protocol (MCP). Once connected, your tool can securely access all connected sources of knowledge in Stack Internal.
Claude Code
Open your computer's terminal and run the following command:
claude mcp add --transport http StackInternal https://mcp.stackinternal.com/
If you're connecting to a workspace in the EU, use this command instead:
claude mcp add --transport http StackInternal https://mcp.eu.stackinternal.com/
Claude Web
- Visit https://claude.ai/customize/connectors.
- Add a new connector / MCP server.
- Add our server: [https://mcp.stackinternal.com] (or https://mcp.eu.stackinternal.com for EU users).
- Complete any authentication as prompted.
Codex
Open your computer's terminal and run the following command:
codex mcp add StackInternal --url https://mcp.stackinternal.com
If you're connecting to a workspace in the EU, use this command instead:
codex mcp add StackInternal --url https://mcp.eu.stackinternal.com
Copilot
Open your computer's terminal and run the following command:
copilot mcp add --transport http StackInternal https://mcp.stackinternal.com/
If you're connecting to a workspace in the EU, use this command instead:
copilot mcp add --transport http StackInternal https://mcp.eu.stackinternal.com/
Cursor
With Cursor installed on your computer, copy the link below into your browser:
cursor://anysphere.cursor-deeplink/mcp/install?name=StackInternal&config=eyJ1cmwiOiJodHRwczovL21jcC5zdGFja2ludGVybmFsLmNvbSJ9
If you're connecting to a workspace in the EU, use this link instead:
cursor://anysphere.cursor-deeplink/mcp/install?name=StackInternal&config=eyJ1cmwiOiJodHRwczovL21jcC5ldS5zdGFja2ludGVybmFsLmNvbSJ9
Gemini CLI
Open your computer's terminal and run the following command:
gemini mcp add --transport http StackInternal https://mcp.stackinternal.com/
If you're connecting to a workspace in the EU, use this command instead:
gemini mcp add --transport http StackInternal https://mcp.eu.stackinternal.com/
JetBrains AI Assistant
- Open Settings.
- Go to Tools.
- Go to AI Assistant.
- Open Model Context Protocol (MCP).
- Click Add.
- Choose HTTP.
- Paste:
{
"mcpServers": {
"StackInternal": {
"url": "https://mcp.stackinternal.com/"
}
}
}
If you're connecting to a workspace in the EU, paste this instead:
{
"mcpServers": {
"StackInternal": {
"url": "https://mcp.eu.stackinternal.com/"
}
}
}
- Click OK.
- Click Apply.
Visual Studio
- Open GitHub Copilot Chat.
- Switch to Agent mode.
- Open Tools.
- Click the + button.
- Choose Add custom MCP server.
- Enter the server name: StackInternal.
- Enter the server URL: https://mcp.stackinternal.com (or https://mcp.eu.stackinternal.com for EU users).
- Save the configuration.
Visual Studio Code
With VS Code installed on your computer, copy the link below into your browser:
vscode:mcp/install?%7B%22name%22%3A%22StackInternal%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fmcp.stackinternal.com%22%7D
If you're connecting to a workspace in the EU, use this link instead:
vscode:mcp/install?%7B%22name%22%3A%22StackInternal%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fmcp.eu.stackinternal.com%22%7D
Windsurf
- If StackInternal is published in the Windsurf registry, install it from there.
- If it is not registry-listed, open ~/.codeium/windsurf/mcp_config.json.
- Add:
{
"mcpServers": {
"StackInternal": {
"serverUrl": "https://mcp.stackinternal.com/"
}
}
}
If you're connecting to a workspace in the EU, use this config instead:
{
"mcpServers": {
"StackInternal": {
"serverUrl": "https://mcp.eu.stackinternal.com/"
}
}
}
- Save the file.
- Restart Windsurf if needed.
Zed
- Open Zed settings.
- Add StackInternal under context_servers.
- Set the URL to https://mcp.stackinternal.com (or https://mcp.eu.stackinternal.com for EU users).
- Save the settings.
Manual installation
Add the following config to your IDE or Agent:
{
"mcpServers": {
"StackInternal": {
"type": "streamable-http",
"url": "https://mcp.stackinternal.com/"
}
}
}
If you're connecting to a workspace in the EU, use this config instead:
{
"mcpServers": {
"StackInternal": {
"type": "streamable-http",
"url": "https://mcp.eu.stackinternal.com/"
}
}
}
If your IDE or Agent does not support Streamable HTTP (usually on older products), use the following config:
{
"mcpServers": {
"StackInternal": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.stackinternal.com/"
]
}
}
}
If you're connecting to a workspace in the EU, use this config instead:
{
"mcpServers": {
"StackInternal": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.eu.stackinternal.com/"
]
}
}
}
Amp
Open your computer's terminal and run the following command:
amp mcp add StackInternal https://mcp.stackinternal.com/
If you're connecting to a workspace in the EU, use this command instead:
amp mcp add StackInternal https://mcp.eu.stackinternal.com/
Documentation
Here are additional articles you may find helpful: