by bradcstevens
Integrate custom bots with Microsoft Copilot Studio for artificial intelligence chat online, chat history, and conversat
Connects to Microsoft Copilot Studio bots through the Direct Line API to send messages, retrieve chat history, and manage conversations programmatically.
Microsoft Copilot Studio Direct Line is a community-built MCP server published by bradcstevens that provides AI assistants with tools and capabilities via the Model Context Protocol. Integrate custom bots with Microsoft Copilot Studio for artificial intelligence chat online, chat history, and conversat It is categorized under communication, developer tools.
You can install Microsoft Copilot Studio Direct Line in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
MIT
Microsoft Copilot Studio Direct Line is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Add new capabilities to Claude beyond text generation
Example
Access external data sources, execute code, interact with tools and services
Transform Claude from chatbot to action-taking agent
Provide Claude with access to relevant context and data
Example
Load project documentation, access knowledge bases, query databases
Get more accurate, context-aware responses
Automate multi-step workflows combining AI and external tools
Example
Research → Summarize → Create document → Send notification
Complete complex tasks end-to-end without manual steps
Share your MCP server with the developer community
We wired Microsoft Copilot Studio Direct Line into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
Microsoft Copilot Studio Direct Line is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
According to our notes, Microsoft Copilot Studio Direct Line benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
I recommend Microsoft Copilot Studio Direct Line for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
Microsoft Copilot Studio Direct Line is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
I recommend Microsoft Copilot Studio Direct Line for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
Microsoft Copilot Studio Direct Line has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
Microsoft Copilot Studio Direct Line is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
Microsoft Copilot Studio Direct Line has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
According to our notes, Microsoft Copilot Studio Direct Line benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
showing 1-10 of 55
Easily install the Copilot Studio Agent Direct Line MCP Server for VS Code or VS Code Insiders:
This TypeScript project provides a local MCP server for Microsoft Copilot Studio Agents, enabling you to interact with your Copilot Studio Agents directly from your code editor via the Direct Line 3.0 API.
The Copilot Studio Agent Direct Line MCP Server brings Microsoft Copilot Studio Agent context to your development environment. Try prompts like:
The Copilot Studio Agent Direct Line MCP Server is built with tools that are concise, simple, focused, and easy to use—each designed for a specific scenario. We intentionally avoid complex tools that try to do too much. The goal is to provide a thin abstraction layer over the Direct Line 3.0 API, making agent interaction straightforward and letting the language model handle complex reasoning.
Interact with your Copilot Studio Agent using these tools:
For the best experience, use Visual Studio Code and GitHub Copilot. See the getting started documentation to use our MCP Server with other tools such as Claude Code and Cursor.
After installation, select GitHub Copilot Agent Mode and refresh the tools list. Learn more about Agent Mode in the VS Code Documentation.
This installation method is the easiest for all users of Visual Studio Code.
In your project, add a .vscode/mcp.json file with the following content:
{
"inputs": [
{
"id": "direct_line_secret",
"type": "promptString",
"description": "Direct Line secret key from your Copilot Studio Agent"
}
],
"servers": {
"copilot-studio-agent-direct-line-mcp": {
"type": "stdio",
"command": "npx",
"args": ["-y", "copilot-studio-agent-direct-line-mcp"],
"env": {
"DIRECT_LINE_SECRET": "${input:direct_line_secret}"
}
}
}
}
Save the file, then click 'Start' in the MCP Server panel.
In chat, switch to Agent Mode.
Click "Select Tools" and choose the available tools.
Open GitHub Copilot Chat and try a prompt like Start a conversation with my Copilot Studio Agent. The first time a tool is executed, you will be prompted for your Direct Line secret.
💥 We strongly recommend creating a
.github/copilot-instructions.mdin your project. This will enhance your experience using the Copilot Studio MCP Server with GitHub Copilot Chat. To start, just include "This project uses Microsoft Copilot Studio Agents. Always check to see if the Copilot Studio MCP server has a tool relevant to the user's request" in your copilot instructions file.
See the getting started documentation for additional installation methods, including local development setup.
See the Troubleshooting guide for help with common issues and logging.
Explore example prompts and usage patterns in our Examples documentation.
For detailed tool reference and usage guides, refer to the Usage Guide.
For answers to common questions about the Copilot Studio Agent Direct Line MCP Server, see the Frequently Asked Questions.
We welcome contributions! During preview, please file issues for bugs, enhancements, or documentation improvements.
See our Contributions Guide for:
This project follows standard open-source community guidelines. We expect all contributors to be respectful and constructive in their interactions.
Licensed under the MIT License.
Disclaimer: This is a personal project by Brad Stevens.
It is not affiliated with or endorsed by Microsoft Corporation.
Prerequisites
Time Estimate
15-60 minutes depending on server complexity
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.
Protocols
Compatibility
✓ Use when
Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.
✗ Avoid when
Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.