CSS Tutor MCP Server logo

CSS Tutor MCP Server

by 3mdistal

This is a simple Model Context Protocol (MCP) server built with Node.js and TypeScript that acts as a "CSS Tutor," providing personalized updates about CSS features to a connected AI client. It demonstrates key MCP concepts: defining Resources, Tools, and Prompts.

View on GitHub

Last updated: N/A

What is CSS Tutor MCP Server?

The CSS Tutor MCP Server is a Node.js and TypeScript-based server that provides personalized CSS feature updates to AI clients using the Model Context Protocol (MCP). It showcases the use of Resources, Tools, and Prompts within the MCP framework to enable agentic capabilities.

How to use CSS Tutor MCP Server?

To use the server, clone the repository, install dependencies, obtain an OpenRouter API key, build the server, configure your MCP client (like Claude or Cursor) with the server's command and API key, and then connect from your client. For Cursor, you'll also need to create a project rule file to guide the AI's interaction with the server's tools.

Key features of CSS Tutor MCP Server

  • Defines a CSS knowledge memory resource.

  • Provides tools for fetching CSS updates, reading from memory, and writing to memory.

  • Includes a prompt to guide the AI client on how to use the tools effectively.

  • Uses OpenRouter API to fetch live CSS updates.

  • Supports integration with AI clients like Claude and Cursor.

Use cases of CSS Tutor MCP Server

  • Personalized CSS learning for developers.

  • Demonstration of MCP server implementation.

  • Integration with AI-powered code editors.

  • Building agentic capabilities for CSS tutoring.

FAQ from CSS Tutor MCP Server

What is an MCP server?

An MCP (Model Context Protocol) server allows AI clients to interact with external resources and tools in a structured way.

What is the purpose of the OpenRouter API key?

The OpenRouter API key is required to fetch the latest CSS updates via the Perplexity model.

How do I configure the server with Cursor?

In Cursor, add a new global MCP server with the server's command and API key, and create a project rule file to guide the AI's interaction with the server's tools.

What are Resources, Tools, and Prompts in the context of this server?

Resources represent the user's CSS knowledge memory, Tools are actions the server can perform (fetching updates, reading/writing memory), and Prompts guide the AI client on how to use the tools and resources effectively.

How can I debug the server?

You can use the @modelcontextprotocol/inspector tool to inspect the raw JSON-RPC messages being exchanged between the client and the server.