University Course Catalog MCP Server

University Course Catalog MCP Server

MCP server that exposes a university course catalog to LLMs, enabling course search, prerequisite lookup, instructor details, and department directory through natural language.

Category
Visit Server

README

University Course Catalog MCP Server

A Model Context Protocol (MCP) server exposing a university course catalog to Large Language Models (LLMs). This project acts as the backend for an AI-powered academic advisor, demonstrating how to use the MCP specification, define tools and resources, and manage state securely with a SQLite database.

Technologies Used

  • Python 3.12
  • FastAPI (for HTTP and SSE transport)
  • Model Context Protocol (MCP) SDK
  • SQLAlchemy (Database ORM)
  • Pydantic (Data validation)
  • NetworkX (Graph resolution for prerequisites)
  • Docker & Docker Compose (Containerization)

Getting Started

1. Prerequisites

Ensure you have Docker and Docker Compose installed on your system.

2. Environment Variables

An .env.example file is provided in the repository root. Ensure the database URL is correctly configured:

DATABASE_URL=sqlite:///./data/catalog.db
PORT=8080

3. Running the Server

You can launch the entire system using Docker Compose. This command builds the image, runs the database seed script automatically, and mounts the data/ volume for database persistence:

docker-compose up --build -d

The server will be available at http://localhost:8080. Docker Compose will also execute an automated healthcheck.

MCP Capabilities

Tools

  • search_courses: Searches the university course catalog for courses matching a query string. Can optionally filter by a specific department code.
  • get_prerequisites: Retrieves the direct prerequisites for a given course code.
  • lookup_instructor: Finds an instructor's details (Name, Email, Department) by their name.
  • get_prerequisite_graph: Returns the full, multi-level dependency graph (nodes and edges) for a given course using NetworkX.

Resources

  • course-catalog://course_descriptions: A formatted text resource containing all courses and their descriptions.
  • course-catalog://department_directory: A formatted text resource listing all academic departments and their codes.

Prompt Templates

  • course_comparison_template: A prompt template requesting the LLM to generate a structured comparison between two specific courses using their course codes.

Testing Locally

You can test the MCP server functionality by connecting the official MCP Inspector CLI to the server:

npx @anthropic-ai/inspector http://localhost:8080/sse

From the inspector, you can invoke tools, fetch resources, and render prompt templates interactively.

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
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
Qdrant Server

Qdrant Server

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

Official
Featured