圖形平台的模型上下文協議 (mcp) 伺服器
概覽
什麼是 Graphlit MCP 伺服器?
Graphlit MCP 伺服器是一個專門為 Graphlit 平台設計的伺服器,實現了模型上下文協議(MCP)。這個伺服器促進了 Graphlit 生態系統中各個組件之間的無縫通信和數據交換,確保模型能夠高效地管理和使用。它作為需要強大模型管理和上下文處理的應用程序的支柱,對於從事機器學習模型的開發者和數據科學家來說,是一個必不可少的工具。
Graphlit MCP 伺服器的特點
- 模型管理:伺服器允許用戶輕鬆管理多個機器學習模型,實現快速更新和修改。
- 上下文處理:它提供了先進的上下文處理能力,確保模型在正確的上下文中運行,以達到最佳性能。
- 可擴展性:Graphlit MCP 伺服器設計用於處理不斷增長的模型和請求,可以根據應用程序的需求進行擴展。
- 集成:伺服器與 Graphlit 平台的其他組件無縫集成,增強了整體功能和用戶體驗。
- 開源:作為一個公共代碼庫,開發者可以參與其開發,確保持續改進和創新。
如何使用 Graphlit MCP 伺服器
- 安裝:首先從 GitHub 克隆代碼庫。使用以下命令:
git clone https://github.com/graphlit/graphlit-mcp-server.git
- 配置:根據您的需求配置伺服器設置。這可能包括設置模型路徑、上下文參數和其他必要的配置。
- 啟動伺服器:使用提供的腳本或命令啟動伺服器。確保所有依賴項已正確安裝和配置。
- 部署模型:將您的機器學習模型上傳到伺服器。利用提供的 API 端點來管理和與您的模型互動。
- 監控和維護:定期監控伺服器的性能和日誌,以確保最佳運行。根據需要更新模型和配置。
常見問題
Graphlit MCP 伺服器的目的是什么?
Graphlit MCP 伺服器旨在高效管理機器學習模型及其上下文,促進在 Graphlit 平台內的更好集成和性能。
Graphlit MCP 伺服器是開源的嗎?
是的,Graphlit MCP 伺服器是一個開源項目,允許開發者貢獻並增強其功能。
我該如何貢獻 Graphlit MCP 伺服器?
您可以通過分叉代碼庫、進行更改並提交拉取請求來貢獻。確保遵循代碼庫中提供的貢獻指南。
運行 Graphlit MCP 伺服器的系統要求是什麼?
伺服器需要一個兼容的環境,並安裝必要的依賴項。請參考代碼庫中的文檔以獲取詳細的系統要求。
我可以在哪裡找到更多有關 Graphlit 的信息?
欲了解更多信息,請訪問官方 Graphlit 網站 www.graphlit.com。
詳細
Model Context Protocol (MCP) Server for Graphlit Platform
Overview
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. This document outlines the setup process and provides a basic example of using the client.
Ingest anything from Slack, Discord, websites, Google Drive, email, Jira, Linear or GitHub into a Graphlit project - and then search and retrieve relevant knowledge within an MCP client like Cursor, Windsurf, Goose or Cline.
Your Graphlit project acts as a searchable, and RAG-ready knowledge base across all your developer and product management tools.
Documents (PDF, DOCX, PPTX, etc.) and HTML web pages will be extracted to Markdown upon ingestion. Audio and video files will be transcribed upon ingestion.
Web crawling and web search are built-in as MCP tools, with no need to integrate other tools like Firecrawl, Exa, etc. separately.
You can read more about the MCP Server use cases and features on our blog.
Watch our latest YouTube video on using the Graphlit MCP Server with the Goose MCP client.
For any questions on using the MCP Server, please join our Discord community and post on the #mcp channel.
<a href="https://glama.ai/mcp/servers/fscrivteod"> <img width="380" height="200" src="https://glama.ai/mcp/servers/fscrivteod/badge" alt="graphlit-mcp-server MCP server" /> </a>Tools
Retrieval
- Query Contents
- Query Collections
- Query Feeds
- Query Conversations
- Retrieve Relevant Sources
- Retrieve Similar Images
- Visually Describe Image
RAG
- Prompt LLM Conversation
Extraction
- Extract Structured JSON from Text
Publishing
- Publish as Audio (ElevenLabs Audio)
- Publish as Image (OpenAI Image Generation)
Ingestion
- Files
- Web Pages
- Messages
- Posts
- Emails
- Issues
- Text
- Memory (Short-Term)
Data Connectors
- Microsoft Outlook email
- Google Mail
- Notion
- Linear
- Jira
- GitHub Issues
- Google Drive
- OneDrive
- SharePoint
- Dropbox
- Box
- GitHub
- Slack
- Microsoft Teams
- Discord
- Twitter/X
- Podcasts (RSS)
Web
- Web Crawling
- Web Search (including Podcast Search)
- Web Mapping
- Screenshot Page
Notifications
- Slack
- Webhook
- Twitter/X
Operations
- Configure Project
- Create Collection
- Add Contents to Collection
- Remove Contents from Collection
- Delete Collection(s)
- Delete Feed(s)
- Delete Content(s)
- Delete Conversation(s)
- Is Feed Done?
- Is Content Done?
Enumerations
- List Slack Channels
- List Microsoft Teams Teams
- List Microsoft Teams Channels
- List SharePoint Libraries
- List SharePoint Folders
- List Linear Projects
- List Notion Databases
Resources
- Project
- Contents
- Feeds
- Collections (of Content)
- Workflows
- Conversations
- Specifications
Prerequisites
Before you begin, ensure you have the following:
- Node.js installed on your system (recommended version 18.x or higher).
- An active account on the Graphlit Platform with access to the API settings dashboard.
Configuration
The Graphlit MCP Server supports environment variables to be set for authentication and configuration:
GRAPHLIT_ENVIRONMENT_ID
: Your environment ID.GRAPHLIT_ORGANIZATION_ID
: Your organization ID.GRAPHLIT_JWT_SECRET
: Your JWT secret for signing the JWT token.
You can find these values in the API settings dashboard on the Graphlit Platform.
Installation
Installing via VS Code
For quick installation, use one of the one-click install buttons below:
For manual installation, add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing Ctrl + Shift + P
and typing Preferences: Open User Settings (JSON)
.
Optionally, you can add it to a file called .vscode/mcp.json
in your workspace. This will allow you to share the configuration with others.
Note that the
mcp
key is not needed in the.vscode/mcp.json
file.
{
"mcp": {
"inputs": [
{
"type": "promptString",
"id": "organization_id",
"description": "Graphlit Organization ID",
"password": true
},
{
"type": "promptString",
"id": "environment_id",
"description": "Graphlit Environment ID",
"password": true
},
{
"type": "promptString",
"id": "jwt_secret",
"description": "Graphlit JWT Secret",
"password": true
}
],
"servers": {
"graphlit": {
"command": "npx",
"args": ["-y", "graphlit-mcp-server"],
"env": {
"GRAPHLIT_ORGANIZATION_ID": "${input:organization_id}",
"GRAPHLIT_ENVIRONMENT_ID": "${input:environment_id}",
"GRAPHLIT_JWT_SECRET": "${input:jwt_secret}"
}
}
}
}
}
Installing via Windsurf
To install graphlit-mcp-server in Windsurf IDE application, Cline should use NPX:
npx -y graphlit-mcp-server
Your mcp_config.json file should be configured similar to:
{
"mcpServers": {
"graphlit-mcp-server": {
"command": "npx",
"args": [
"-y",
"graphlit-mcp-server"
],
"env": {
"GRAPHLIT_ORGANIZATION_ID": "your-organization-id",
"GRAPHLIT_ENVIRONMENT_ID": "your-environment-id",
"GRAPHLIT_JWT_SECRET": "your-jwt-secret",
}
}
}
}
Installing via Cline
To install graphlit-mcp-server in Cline IDE application, Cline should use NPX:
npx -y graphlit-mcp-server
Your cline_mcp_settings.json file should be configured similar to:
{
"mcpServers": {
"graphlit-mcp-server": {
"command": "npx",
"args": [
"-y",
"graphlit-mcp-server"
],
"env": {
"GRAPHLIT_ORGANIZATION_ID": "your-organization-id",
"GRAPHLIT_ENVIRONMENT_ID": "your-environment-id",
"GRAPHLIT_JWT_SECRET": "your-jwt-secret",
}
}
}
}
Installing via Cursor
To install graphlit-mcp-server in Cursor IDE application, Cursor should use NPX:
npx -y graphlit-mcp-server
Your mcp.json file should be configured similar to:
{
"mcpServers": {
"graphlit-mcp-server": {
"command": "npx",
"args": [
"-y",
"graphlit-mcp-server"
],
"env": {
"GRAPHLIT_ORGANIZATION_ID": "your-organization-id",
"GRAPHLIT_ENVIRONMENT_ID": "your-environment-id",
"GRAPHLIT_JWT_SECRET": "your-jwt-secret",
}
}
}
}
Installing via Smithery
To install graphlit-mcp-server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @graphlit/graphlit-mcp-server --client claude
Installing manually
To use the Graphlit MCP Server in any MCP client application, use:
{
"mcpServers": {
"graphlit-mcp-server": {
"command": "npx",
"args": [
"-y",
"graphlit-mcp-server"
],
"env": {
"GRAPHLIT_ORGANIZATION_ID": "your-organization-id",
"GRAPHLIT_ENVIRONMENT_ID": "your-environment-id",
"GRAPHLIT_JWT_SECRET": "your-jwt-secret",
}
}
}
}
Optionally, you can configure the credentials for data connectors, such as Slack, Google Email and Notion. Only GRAPHLIT_ORGANIZATION_ID, GRAPHLIT_ENVIRONMENT_ID and GRAPHLIT_JWT_SECRET are required.
{
"mcpServers": {
"graphlit-mcp-server": {
"command": "npx",
"args": [
"-y",
"graphlit-mcp-server"
],
"env": {
"GRAPHLIT_ORGANIZATION_ID": "your-organization-id",
"GRAPHLIT_ENVIRONMENT_ID": "your-environment-id",
"GRAPHLIT_JWT_SECRET": "your-jwt-secret",
"SLACK_BOT_TOKEN": "your-slack-bot-token",
"DISCORD_BOT_TOKEN": "your-discord-bot-token",
"TWITTER_TOKEN": "your-twitter-token",
"GOOGLE_EMAIL_REFRESH_TOKEN": "your-google-refresh-token",
"GOOGLE_EMAIL_CLIENT_ID": "your-google-client-id",
"GOOGLE_EMAIL_CLIENT_SECRET": "your-google-client-secret",
"LINEAR_API_KEY": "your-linear-api-key",
"GITHUB_PERSONAL_ACCESS_TOKEN": "your-github-pat",
"JIRA_EMAIL": "your-jira-email",
"JIRA_TOKEN": "your-jira-token",
"NOTION_API_KEY": "your-notion-api-key"
}
}
}
}
NOTE: when running 'npx' on Windows, you may need to explicitly call npx via the command prompt.
"command": "C:\\Windows\\System32\\cmd.exe /c npx"
Support
Please refer to the Graphlit API Documentation.
For support with the Graphlit MCP Server, please submit a GitHub Issue.
For further support with the Graphlit Platform, please join our Discord community.
伺服器配置
{
"mcpServers": {
"graphlit-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/metorial/mcp-container--graphlit--graphlit-mcp-server--graphlit-mcp-server",
"npm run start"
],
"env": {
"GRAPHLIT_ORGANIZATION_ID": "graphlit-organization-id",
"GRAPHLIT_ENVIRONMENT_ID": "graphlit-environment-id",
"GRAPHLIT_JWT_SECRET": "graphlit-jwt-secret"
}
}
}
}