Cover image
Try Now
2025-04-14

3 years

Works with Finder

0

Github Watches

0

Github Forks

0

Github Stars

MCP Assistant Azure Prototype

A lightweight prototype that uses the Model Context Protocol (MCP) to allow an LLM to:

  • Schedule Microsoft Teams meetings via Microsoft Graph API
  • Read/write files to your local filesystem using the MCP Filesystem server
  • Interact through a user-friendly chat interface

Requirements

  • Python 3.10+
  • .env file with Microsoft Graph credentials
  • Node.js + npx
  • Gradio (pip install gradio)

Environment Variables

Create a .env file in the root directory with the following variables:

# Azure OpenAI Configuration
AZURE_OPENAI_API_KEY=your_azure_openai_api_key
AZURE_OPENAI_ENDPOINT=https://your-resource-name.openai.azure.com/
AZURE_OPENAI_DEPLOYMENT_NAME=your_deployment_name
AZURE_OPENAI_API_VERSION=your_api_version

# Microsoft Graph API Configuration
GRAPH_TENANT_ID=your_tenant_id
GRAPH_CLIENT_ID=your_client_id
GRAPH_CLIENT_SECRET=your_client_secret
GRAPH_USER_EMAIL=your_user_object_id

Usage

Option 1: Chat Interface (Recommended)

The chat interface provides a user-friendly way to interact with the assistant.

  1. Run the Gradio chat interface:

    python gradio_chat.py
    
  2. Open your browser and navigate to:

    http://127.0.0.1:7860/
    
  3. Chat with your assistant! You can ask it to:

    • Schedule meetings
    • Check system status
    • View calendar information

Option 2: Command Line (Original Method)

You can still use the original command line method:

  1. Start the Graph Calendar MCP Server:

    fastmcp run graph_server.py
    
  2. Start the Filesystem MCP Server:

    npx -y @modelcontextprotocol/server-filesystem ~/mcp_files
    

    Servers: https://github.com/modelcontextprotocol/servers/tree/main

  3. Run the Assistant:

    MCP_PROMPT="Create a 30-minute meeting with [emails] today at 1pm and name the meeting Quick Sync." python main.py
    

    Note: For filesystem operations, make sure to use a file path that's within the allowed directory (~/mcp_files).

How It Works

The application uses:

  • Gradio for the web interface
  • Asyncio for handling asynchronous operations
  • Model Context Protocol (MCP) to connect the LLM with external tools
  • Azure OpenAI API for the underlying AI model

Example Prompts

Try these examples in the chat interface:

  • "Schedule a meeting with [colleague@example.com] tomorrow at 2pm titled 'Project Review'"
  • "What's my calendar look like for next week?"
  • "Check the current system status"

Troubleshooting

If you encounter any issues:

  1. Make sure all environment variables are set correctly
  2. Check that ports 7860, 8001, and 8002 are available
  3. Verify that your Azure OpenAI deployment is active
  4. Ensure you have the correct permissions for Microsoft Graph API

相关推荐

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • rulego
  • ⛓️Rulego是一种轻巧,高性能,嵌入式,下一代组件编排规则引擎框架。

  • Byaidu
  • PDF科学纸翻译带有保留格式的pdf -基于ai完整保留排版的pdf文档全文双语翻译

  • sigoden
  • 使用普通的bash/javascript/python函数轻松创建LLM工具和代理。

  • RockChinQ
  • 😎简单易用、🧩丰富生态 -大模型原生即时通信机器人平台| 适配QQ / 微信(企业微信、个人微信) /飞书 /钉钉 / discord / telegram / slack等平台| 支持chatgpt,deepseek,dify,claude,基于LLM的即时消息机器人平台,支持Discord,Telegram,微信,Lark,Dingtalk,QQ,Slack

  • hkr04
  • 轻巧的C ++ MCP(模型上下文协议)SDK

  • dmayboroda
  • 带有可配置容器的本地对话抹布

  • modelscope
  • 开始以更轻松的方式开始构建具有LLM授权的多代理应用程序。

    Reviews

    1.6 (5)
    Avatar
    user_u9sYRp4P
    2025-04-23

    As a loyal user of mcp-assistant-azure-prototype, I am thoroughly impressed by its performance and reliability. Developed by natebutcherbox, this tool has significantly streamlined my workflow, making complex tasks much simpler and more efficient. Its seamless integration with Azure services and user-friendly interface ensure that both beginners and advanced users can harness its full potential. Highly recommended for anyone looking to enhance their productivity and operational efficiency!

    Avatar
    user_JWJvCwYT
    2025-04-23

    As a dedicated user of the mcp-assistant-azure-prototype created by natebutcherbox, I am thoroughly impressed by its seamless functionality and ease of use. The interface is intuitive, making it simple to navigate and efficient in productivity tasks. This prototype demonstrates robust capabilities in handling complex workflows, making it an invaluable tool for any Azure-based projects. Highly recommended for anyone in need of a reliable assistant to enhance their cloud computing experience!

    Avatar
    user_Wga0KEEO
    2025-04-23

    I've been using the mcp-assistant-azure-prototype for a while now, and it's absolutely fantastic! Natebutcherbox has done an incredible job crafting this application. The user interface is intuitive and the features are very powerful, making my daily tasks so much easier. Highly recommend it to anyone looking to streamline their workflow!

    Avatar
    user_liDyfTbz
    2025-04-23

    As a devoted user of MCP applications, I find the mcp-assistant-azure-prototype by natebutcherbox incredibly efficient and user-friendly. The seamless integration with Azure enhances productivity and simplifies workflow management. Its intuitive design and robust features make it a must-have tool for any project. Highly recommend!

    Avatar
    user_lQgWptiz
    2025-04-23

    As an avid user of the mcp-assistant-azure-prototype created by natebutcherbox, I am thoroughly impressed with its capabilities. This innovative tool seamlessly integrates with Azure, enhancing my workflow efficiency. The interface is user-friendly and the performance is remarkably reliable. I highly recommend this prototype for anyone looking to optimize their Azure experience.