disease-detection-mcp-server

disease-detection-mcp-server

Enables plant disease detection through an MCP server powered by AI models, supporting deployment on Railway or local Claude Desktop.

Category
访问服务器

README

MCP Server — Deployment Guide

This repository contains an MCP (Model Context Protocol) Server built with FastAPI.
It powers model-based interactions, external API communication, and AI-driven processing.

You can deploy this server in two ways:

  • Cloud deployment using Railway
  • Local deployment via Claude Desktop

Prerequisites

  • Python 3.10+
  • A Railway account (for cloud deployment)
  • Claude Desktop installed (for local MCP deployment)
  • requirements.txt dependencies installed

Environment Variables

Create a .env file (or set via Railway dashboard):

DYNAMODB_TABLE_NAME=your-dynamo-db-name
S3_BUCKET_NAME=your-s3-bucket-name
AWS_REGION=your-aws-region
AWS_ACCESS_KEY_ID=your-access-key
AWS_SECRET_ACCESS_KEY=your-secret-access-key

For Claude Desktop local deployment, environment variables can be added through the MCP configuration.


Deployment Option 1: Railway (Cloud Hosting)

1. Upload or Connect Your Repository

  • Push your project to GitHub.
  • Go to Railway Dashboard.
  • Click “New Project” → “Deploy from GitHub Repo”.
  • Select your MCP server repository.

2. Set Environment Variables

In Railway → Settings → Variables, add all keys from your .env.

3. Configure the Start Command

If Railway doesn’t auto-detect it, manually set:

uvicorn app.main:app --host 0.0.0.0 --port $PORT

4. Deploy!

Click Deploy Now, and Railway will build and host your MCP server.

Once live, you’ll get a public URL:

https://your-mcp-server.up.railway.app/

5. Test the Deployment

curl https://your-mcp-server.up.railway.app/

Expected response:

{"message":"Plant Disease MCP API running......."}

Deployment Option 2: Claude Desktop (Local MCP)

1. Claude Desktop Setup

  • First, make sure you have Claude for Desktop installed. You can install the latest version here.
  • If you already have Claude for Desktop, make sure it’s updated to the latest version.
  • We’ll need to configure Claude for Desktop for whichever MCP servers you want to use.
  • To do this, open your Claude for Desktop App configuration at ~/Library/Application Support/Claude/claude_desktop_config.json in a text editor.
  • Make sure to create the file if it doesn’t exist.

macOS/Linux:

code ~/Library/Application\ Support/Claude/claude_desktop_config.json

windows:

code $env:AppData\Claude\claude_desktop_config.json

2. Add MCP Server

You’ll then add your servers in the mcpServers key. The MCP UI elements will only show up in Claude for Desktop if at least one server is properly configured.

macOS/Linux:

{
  "mcpServers": {
    "server-name": {
      "command": "package-installer",     # uv/pip
      "args": [
        "--directory",
        "/ABSOLUTE/PATH/TO/PARENT/FOLDER/mcp-folder",
        "run",
        "server-file.py"
      ]
    }
  }
}

windows:

{
  "mcpServers": {
    "server-name": {
      "command": "package-installer",     #uv/pip
      "args": [
        "--directory",
        "C:\\ABSOLUTE\\PATH\\TO\\PARENT\\FOLDER\\mcp-folder",
        "run",
        "server-file.py"
      ]
    }
  }
}

You may need to put the full path to the uv executable in the command field. You can get this by running which uv / which pip on macOS/Linux or where uv / where pip on Windows.

This tells Claude for Desktop:

  1. There’s an MCP server named “server-name”
  2. To launch it by running uv --directory /ABSOLUTE/PATH/TO/PARENT/FOLDER/mcp-folder run server-file.py

Save the file, and restart Claude for Desktop.

3. Test with Commands

  • Make sure Claude for Desktop is picking up the two tools we’ve exposed in your server-name. You can do this by looking for the Search and tools icon.
  • After clicking on the slider icon, you should see all tools listed.
  • If your server isn’t being picked up by Claude for Desktop, proceed to the Troubleshooting section for debugging tips.
  • If the tool settings icon has shown up, you can now test your server by running the commands in Claude for Desktop.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选