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.
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: