This documentation is for Stack Overflow for Teams Enterprise. Free, Basic, and Business users can access their documentation here. Find your plan.
Overview
The Stack Overflow for Teams MCP server makes your enterprise knowledge available to any MCP-compatible AI agent. To learn more about configuring and accessing the Stack Overflow for Teams Enterprise (SOE) MCP server, read the MCP Server Quickstart Guide.
In this article, we'll detail how to configure Cursor to access your SOE site's MCP server.
Before you can configure Cursor to access your MCP server, you'll need:
Your site's MCP server to be enabled at https://[your_site].stackenterprise.co/enterprise/mcp.
The latest version of Cursor.
A Cursor license and user account.
Install the MCP server in Cursor
Navigate to your site's MCP server at https://[your_site].stackenterprise.co/mcp.
Click Add to Cursor. Cursor will open.
NOTE: If you need an alternative install process, you can manually copy the configuration code from the MCP page and place it in an mcp.json file in Cursor.
Click Install.
You'll see your server listed under your MCP tools. Click Connect (if not automatically prompted to log in).
On the login screen that appears, click Open.
After successful authentication, Cursor will ask you to grant permission to the ‘cursor-retrieval’ extension. Click Open.
The server status toggle should appear green after successful login with your browser.
Ensure you are in agent mode in the chat area.
Copilot should now have access to your site's MCP server.
Enable auto-run (optional)
For more efficient running of prompts and tools, we recommend enabling Auto-run in your chat agent settings. To enable Auto-run:
Click Switch Agent Mode at the bottom of the chat area.
Click the pencil icon next to "Agent".
Toggle Auto-run on.
Refresh Cursor's access token
Every 24 hours, MCP server access tokens expire. When this happens, the server status indicator will turn from green to yellow. To refresh the access token, click Needs Authentication under the server name.
Invoke tools/prompts
There are two ways to invoke tools and prompts using the Cursor MCP server integration: automatic (keyword) and explicit (recommended).
Method 1: automatic (keyword) tool invocation
Cursor will invoke the MCP server if you use keywords relating to the server or tools. For example, typing "search" or "create question" will invoke the search
tool or create_question
tool respectively. The agent will automatically pull in other tools like get_articles
or get_comments
as needed.
Method 2: explicit prompt invocation with '/' character (recommended)
You can explicitly invoke prompts by preceding them with the '/' character.
We recommend you use this method to directly invoke prompts where possible. Prompts provide the client specific instructions on which tools to use, which can improve results.
NOTE: MCP clients generally don't invoke prompts by default. We expect prompt invocation to become the standard for MCP servers in the future.
Other Cursor features
You can click on the MCP server's "# tools, # prompts enabled" line to see what tools and prompts it makes available to the client.
You can turn servers on or off with their toggle.
If you need further support or have questions, contact your site administrator.