Sponsored by Deepsite.site

Egnyte MCP Server

Created By
egnyte7 months ago
Content

Egnyte MCP Server

An MCP (Model Context Protocol) server that connects to your Egnyte domain and exposes document search and retrieval functionality for use in AI agents like Cursor, Claude, or OpenAI.

This server uses Egnyte’s public APIs and Python SDK to support secure, real-time access to your Egnyte content, enabling smart AI-driven workflows while respecting existing permissions.


📚 About

Model Context Protocol (MCP) is a framework to help AI agents securely query external systems for real-time context.
The Egnyte MCP Server allows agents to:

  • Search for documents by name
  • Retrieve relevant documents from Egnyte
  • Seamlessly integrate enterprise content into generative AI workflows

🛠️ Tools Implemented

Tool NameDescription
search_for_document_by_nameSearches for a document in your Egnyte domain using its filename.

📋 Requirements

Installing Prerequisites

🔧 Installation

1. Clone the Repository

git clone https://github.com/egnyte/egnyte-mcp-server.git
cd egnyte-mcp-server

2. Install uv (Python environment & dependency manager)

Mac/Linux:

curl -LsSf https://astral.sh/uv/install.sh | sh

Windows (PowerShell):

irm https://astral.sh/uv/install.ps1 | iex

3. Install Egnyte SDK

uv pip install egnyte

📄 Egnyte SDK Documentation
🔗 Egnyte SDK GitHub

4. Setting up Environment Variables

  1. Create a .env File

Create a .env file inside the root directory with the following content:

DOMAIN=your-egnyte-domain.egnyte.com 
ACCESS_TOKEN=your-access-token-here
  1. Update with Your Credentials
  • Replace your-egnyte-domain.egnyte.com with your actual Egnyte domain.

  • Replace your-access-token-here with your actual Egnyte API access token.

    This .env file is necessary for the server to authenticate and connect securely to your Egnyte domain.

🚀 Running the MCP Server

uv run server.py --python 3.11

This will start the MCP server locally and make the tools available to MCP-compliant clients.

⚡ Setting up MCP Clients

This is a sample MCP (Model Context Protocol) client that connects to a locally running MCP server using fastmcp.
It uses Python Stdio Transport to communicate with the server and call specific tools by name.

How it works

  • Connects to the MCP server (server.py) via Python Stdio.
  • Lists available tools exposed by the server.
  • Calls a specific tool by its name, with provided arguments.
  • The response is returned based on the tool execution.

Prerequisites

  • Python 3.11+
  • fastmcp library installed:
    uv pip install fastmcp
    
  • MCP server (server.py) running locally
  • .env file configured

Usage

  1. Ensure the MCP server is running first.
  2. Run the client using the command:
    python client.py
    

Cursor IDE Setup

  1. Open Cursor → Settings → MCP
  2. Click "Add new global MCP server"
  3. Add the following configuration:
{
  "mcpServers": {
    "Egnyte Document Retriever": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/egnyte-mcp-server",
        "run",
        "server.py"
      ]
    }
  }
}

✅ Replace /path/to/egnyte-mcp-server with your actual directory path.

  1. Save and enable the server in the MCP settings.

🖼️ Example Screenshots

Cursor MCP Server Configuration

Cursor MCP Config

Cursor MCP Query in Action

Cursor MCP Run


Claude Desktop Setup

To connect Egnyte’s MCP server to Claude Desktop:

  1. Launch Claude Desktop and open MCP tool configuration
  2. Go to Settings → MCP Tools → Add New Server
  3. Add the following configuration:
{
  "mcpServers": {
    "egnyte": {
      "command": "python3",
      "args": ["server.py"],
      "cwd": "/Users/yourname/path/to/egnyte-mcp-server",
      "env": {
        "DOMAIN": "your-egnyte-domain.egnyte.com",
        "ACCESS_TOKEN": "your-access-token"
      }
    }
  }
}

✅ Replace /Users/yourname/path/to/egnyte-mcp-server with your actual directory path.

  1. Save and Start - Claude should detect the server, list search_for_document_by_name under “Available MCP tools,” and be able to call it with filenames.

🖼️ Example Screenshots

Claude MCP Server Configuration

Claude MCP Config

Claude MCP Query in Action

Claude MCP Run

📈 Roadmap

  • ✅ File search by name
  • ✅ Retrieve relevant documents
  • 🔜 Hybrid search (structured + content)
  • 🔜 Document text extraction

#Helping with development

Please report any problems you find to api-support@egnyte.com or pint@egnyte.com

If you'd like to fix something yourself, please fork this repository, commit the fixes and updates to tests, then set up a pull request with information what you're fixing.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
WindsurfThe new purpose-built IDE to harness magic
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
DeepChatYour AI Partner on Desktop
CursorThe AI Code Editor
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Tavily Mcp
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Amap Maps高德地图官方 MCP Server
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Serper MCP ServerA Serper MCP Server
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
ChatWiseThe second fastest AI chatbot™
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Playwright McpPlaywright MCP server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.