Alumnx MCP Server

Alumnx MCP Server

Provides agricultural intelligence tools for pest/disease lookup, government scheme discovery, and SME knowledge retrieval via semantic search.

Category
Visit Server

README

Alumnx MCP Server

A Model Context Protocol (MCP) server for agricultural intelligence, providing tools for pest/disease lookup, government scheme discovery, and SME knowledge retrieval via semantic search.


Features

  • Pests & Diseases — RAG-powered lookup for crop pest and disease information
  • Government Schemes — RAG-powered search for agriculture-related government schemes by type and state
  • SME Divesh — Semantic search over a Pinecone knowledge base (SME-Divesh namespace)
  • MCP + REST — Dual interface: MCP protocol (via FastMCP) and plain REST (/callTool)

Requirements

  • Python 3.9+
  • Dependencies (install via pip install -r requirements.txt):
fastmcp
pinecone
sentence-transformers
python-dotenv
uvicorn
httpx
fastapi

Environment Variables

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

Variable Required Description
PESTS_DISEASES_RAG_URL Base URL of the Pests & Diseases RAG service
GOVT_SCHEMES_RAG_URL Base URL of the Government Schemes RAG service
PINECONE_API_KEY API key for Pinecone
PINECONE_INDEX Name of the Pinecone index to query
RAG_TIMEOUT HTTP timeout in seconds for RAG calls (default: 30)

Example .env:

PESTS_DISEASES_RAG_URL= ___URL__
GOVT_SCHEMES_RAG_URL= __URL__
PINECONE_API_KEY=your-pinecone-api-key
PINECONE_INDEX=your-index-name
RAG_TIMEOUT=30

Running the Server

python alumnx_mcp_server.py

The server starts on port 9000 by default.

Endpoint Description
/mcp MCP protocol endpoint (FastMCP)
/callTool REST tool call endpoint
/list-tools Lists all available tools
/health Health check

MCP Tools

pests_and_diseases

Query the RAG system for information about pests and diseases affecting crops.

Parameter Type Required Default Description
pest_name string Name of the pest or disease
crop string "General" Crop affected by the pest or disease

Example response:

{
  "status": "success",
  "information": "...",
  "sources": ["..."]
}

govt_schemes

Query the RAG system for government schemes related to agriculture.

Parameter Type Required Default Description
scheme_type string Type or topic of the scheme
state string "All India" State for which to retrieve schemes

Example response:

{
  "status": "success",
  "information": "...",
  "sources": ["..."]
}

sme_divesh

Semantic search over the SME-Divesh Pinecone namespace using all-MiniLM-L6-v2 embeddings.

Parameter Type Required Default Description
query string The search query
top_k integer 5 Number of top results to return

Example response:

{
  "status": "success",
  "query": "crop irrigation techniques",
  "results": [
    {
      "score": 0.91,
      "text": "...",
      "source": "...",
      "chunk_index": 2
    }
  ]
}

REST API Usage

All tools are also callable via the /callTool POST endpoint:

curl -X POST http://localhost:9000/callTool \
  -H "Content-Type: application/json" \
  -d '{
    "name": "pests_and_diseases",
    "arguments": {
      "pest_name": "aphids",
      "crop": "wheat"
    }
  }'

Architecture

┌─────────────────────────────────────────┐
│            Alumnx MCP Server            │
│                                         │
│  FastAPI App                            │
│  ├── /mcp          ← FastMCP (MCP)      │
│  ├── /callTool     ← REST interface     │
│  ├── /list-tools   ← Tool discovery     │
│  └── /health       ← Health check       │
│                                         │
│  Tools                                  │
│  ├── pests_and_diseases → RAG HTTP call │
│  ├── govt_schemes       → RAG HTTP call │
│  └── sme_divesh         → Pinecone      │
└─────────────────────────────────────────┘

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

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.

Official
Featured