3C

3mdistal/css-mcp-server

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

32 stars 16 forks 품질 58 트렌드 0

3mdistal/css-mcp-server는 MCP 서버 후보가 https://github.com/3mdistal/css-mcp-server.에서 수입되었습니다

개요

3mdistal/css-mcp-server는 MCP 서버 후보가 https://github.com/3mdistal/css-mcp-server.에서 수입되었습니다

개요(AI 번역)

이 저장소에는 Node.js 및 TypeScript가 내장된 간단한 모델 Context Protocol(MCP) 서버가 포함되어 있습니다. 연결된 AI 클라이언트에 CSS 기능에 대한 개인화된 업데이트를 제공하는 “CSS Tutor” 역할을 합니다.

이 서버는 MCP 개념을 보여줍니다. ** 리소스**, ** 도구**, ** 프로그램**. 이 데모의 목표는 당신이 여기에서 이동하고 훨씬 더 큰 흥미로운 에이전트 기능을 구축하는 데 도움이.

필수품

  • Node.js (v18 이상 권장)
  • npm (또는 yarn 또는 [T2]]]와 같은 선호 Node.js 패키지 관리자)
  • MCP 서버 연결 가능 AI 클라이언트 (예 : Claude 데스크톱 앱)
  • OpenRouter API Key (Perplexity를 통해 라이브 CSS 업데이트)

빠른 시작

서버가 신속하게 실행되도록 이러한 단계를 따르십시오.

  1. ** 저장소 : **

  2. **모든 종점: **

  3. Prepare API Key: get_latest_updates] 도구는 OpenRouter API 키가 필요합니다. OpenRouter에서 키를 얻습니다. 단계 5.에서 MCP 클라이언트에 이 열쇠를 제공할 것입니다.

  4. ** 서버 구축:** TypeScript 코드를 컴파일한다.

  5. 명세.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Building a CSS Tutor MCP Server

This repo contains a simple Model Context Protocol (MCP) server built with Node.js and TypeScript. It acts as a “CSS Tutor,” providing personalized updates about CSS features to a connected AI client.

This server demonstrates key MCP concepts: defining Resources, Tools, and Prompts. The goal of this demonstration is to help you move on from here and build much larger and more interesting agentic capabilities.

Prerequisites

  • Node.js (v18 or later recommended)
  • npm (or your preferred Node.js package manager like yarn or pnpm)
  • An AI client capable of connecting to an MCP server (e.g., the Claude desktop app)
  • An OpenRouter API Key (for fetching live CSS updates via Perplexity)

Quick Start

Follow these steps to get the server running quickly:

  1. Clone the Repository:

    git clone https://github.com/3mdistal/css-mcp-server.git
    cd css-mcp-server
    
  2. Install Dependencies:

    npm install # Or: yarn install / pnpm install
    
  3. Prepare API Key: The get_latest_updates tool requires an OpenRouter API key. Obtain your key from OpenRouter. You will provide this key to your MCP client in Step 5.

  4. Build the Server: Compile the TypeScript code.

    npm run build # Or: yarn build / pnpm run build
    
  5. Configure Your MCP Client: Tell your client how to launch the server and provide the API key as an environment variable. Here’s an example for the Claude desktop app’s claude_desktop_config.json:

    {
      "mcpServers": {
        "css-tutor": {
          "command": "node",
          "args": [
            "/full/path/to/your/css-mcp-server/build/index.js"
          ],
          "env": {
            "OPENROUTER_API_KEY": "sk-or-xxxxxxxxxxxxxxxxxxxxxxxxxx"
          }
        }
      }
    }
    

    (Ensure the path in args is the correct absolute path to the built index.js file on your system. Replace the placeholder API key.)

  6. Connect: Start the connection from your MCP client. The client will launch the server process (with the API key in its environment), and you can start interacting!

Using with Cursor

Cursor is an AI-first code editor that can act as an MCP client. Setting up this server with Cursor is straightforward, but requires an extra step for the guidance prompt.

  1. Configure Server in Cursor:

    • Go to Cursor Settings > MCP > Add new global MCP server.
    • Paste in the same JSON as above in the Claude Desktop step, with all the same caveats.
  2. Create a Cursor Project Rule for the Prompt: Cursor currently does not automatically use MCP prompts provided by servers. Instead, you need to provide the guidance using Cursor’s Project Rules feature.

GitHub에서 전체 README 보기

설치

npx @modelcontextprotocol/inspector node ./build/index.js
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "css-tutor": { "command": "node", "args": [ "/full/path/to/your/css-mcp-server/build/index.js" ], "env": { "OPENROUTER_API_KEY": "sk-or-xxxxxxxxxxxxxxxxxxxxxxxxxx" } } } }