disease-detection-mcp-server
Enables plant disease detection through an MCP server powered by AI models, supporting deployment on Railway or local Claude Desktop.
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.txtdependencies 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.jsonin 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:
- There’s an MCP server named “server-name”
- 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 theSearch and toolsicon. - 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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.