trackmcp
Back to directory
mdagost

mcp-cps-data

View on GitHub

MCP Server for locally hosted data on Chicago Public Schools

0 stars PythonServers & Infrastructure Updated Dec 9, 2024

Documentation

mcp-cps-data MCP server

A MCP server project for exposing a local SQLite database and a local LanceDB vector database with information on Chicago Public Schools

Components

Tools

The server implements two tools:

  • `query_schools_and_neighborhoods`: Excecute a SELECT query on a table of Chicago public schools and their neighborhoods called "schooltoneighborhood" with the following schema: (id INTEGER NOT NULL, created_at DATETIME NOT NULL, school_id INTEGER NOT NULL, school_name VARCHAR NOT NULL, neighborhood VARCHAR NOT NULL, PRIMARY KEY (id)).
    • Takes required parameter `query`
  • `query_school_websites`: Query a database of Chicago public school websites for context relevant to answering a given question.
    • Takes required parameter `question` and optional parameter `school_name`.

Configuration

Get the SQlite database and the LanceDB vector database from the [cps-childcare] project(https://github.com/mdagost/cps-childcare).

Quickstart

Install

Claude Desktop

On MacOS: `~/Library/Application\ Support/Claude/claude_desktop_config.json`

On Windows: `%APPDATA%/Claude/claude_desktop_config.json`

Development/Unpublished Servers Configuration:

code
"mcpServers": {
    "mcp-cps-data": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/mcp-cps-data",
        "run",
        "mcp-cps-data",
        "--sqlite-path",
        "/path/to/cps_crawler.db",
        "--lancedb-path",
        "/path/to/embeddings.lancedb"
      ]
    }
  }

Debugging

Since MCP servers run over stdio, debugging can be challenging. For the best debugging

experience, we strongly recommend using the MCP Inspector.

You can launch the MCP Inspector via `npm` with this command:

bash
npx @modelcontextprotocol/inspector uv --directory /path/to/mcp-cps-data run mcp-cps-data --sqlite-path /path/to/cps_crawler.db --lancedb-path /path/to/embeddings.lancedb

Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.

Frequently asked questions

What is mcp-cps-data?

mcp-cps-data is MCP Server for locally hosted data on Chicago Public Schools

How do I install mcp-cps-data?

Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

Is mcp-cps-data open source?

Yes — it is hosted on GitHub at https://github.com/mdagost/mcp-cps-data.

Related MCP tools

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP