KM

kirill-markin/example-mcp-server

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

38 stars 19 forks Качество 74 Тренд 8MIT

kirill-markin/example-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/kirill-markin/example-mcp-server.

Обзор

kirill-markin/example-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/kirill-markin/example-mcp-server.

Обзор (машинный перевод)

Простой шаблон для создания пользовательских инструментов для Cursor IDE с использованием протокола Model Context Protocol (MCP). Создайте свой собственный репозиторий из этого шаблона, измените инструменты и подключите их к своей IDE курсора.

Быстрый старт

  1. Нажмите кнопку «Развернуть в Heroku»

  2. После развертывания настройте курсор:

  • Настройки Open Cursor → Особенности Добавить новый MCP-сервер Используйте свой URL-адрес Heroku с /sse путем (например, https:// .herokuapp.com/sse)
  1. Проверьте настроение вашего агента в Курсоре: Спросите своего агента: «Пожалуйста, спросите о настроении нашего сервера и дайте мне знать, как это работает». Сервер ответит веселым сообщением и сердцем

Альтернативные методы настройки

Запускать сервер можно тремя способами: с помощью Docker, традиционной настройки Python или непосредственно в Cursor IDE.

Настройка Docker

Проект включает поддержку Docker для простого развертывания:

  1. Первоначальная установка:

2.Строить и запустить с помощью Docker Compose:

Сервер будет доступен по адресу:

  1. Быстрый тест:

5.Подключение к Cursor IDE:

  • Настройки Open Cursor → Особенности Добавить новый MCP-сервер
  • Тип: Выберите “sse” URL: Введите http://localhost:8000/sse

###Традиционная настройка

Во-первых, установите менеджер пакетов uv:

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

MCP Server Template for Cursor IDE

A simple template for creating custom tools for Cursor IDE using Model Context Protocol (MCP). Create your own repository from this template, modify the tools, and connect them to your Cursor IDE.

Quick Start

  1. Click “Deploy to Heroku” button

  2. After deployment, configure Cursor:

    • Open Cursor Settings → Features
    • Add new MCP server
    • Use your Heroku URL with /sse path (e.g., https://.herokuapp.com/sse)
  3. Test your agent’s mood in Cursor:

    • Ask your agent “Please ask about our server mood and let me know how it is.”
    • The server will respond with a cheerful message and a heart ❤️

Alternative Setup Methods

You can run the server in three ways: using Docker, traditional Python setup, or directly in Cursor IDE.

Docker Setup

The project includes Docker support for easy deployment:

  1. Initial setup:
# Clone the repository
git clone https://github.com/kirill-markin/weaviate-mcp-server.git
cd weaviate-mcp-server

# Create environment file
cp .env.example .env
  1. Build and run using Docker Compose:
# Build and start the server
docker compose up --build -d

# View logs
docker compose logs -f

# Check server status
docker compose ps

# Stop the server
docker compose down
  1. The server will be available at:

  2. Quick test:

# Test the server endpoint
curl -i http://localhost:8000/sse
  1. Connect to Cursor IDE:
    • Open Cursor Settings → Features
    • Add new MCP server
    • Type: Select “sse”
    • URL: Enter http://localhost:8000/sse

Traditional Setup

First, install the uv package manager:

# Install uv on macOS
brew install uv
# Or install via pip (any OS)
pip install uv

Start the server using either stdio (default) or SSE transport:

# Install the package with development dependencies
uv pip install -e ".[dev]"

# Using stdio transport (default)
uv run mcp-simple-tool

# Using SSE transport on custom port
uv run mcp-simple-tool --transport sse --port 8000

# Run tests
uv run pytest -v

After installation, you can connect the server directly to Cursor IDE:

  1. Right-click on the cursor-run-mcp-server.sh file in Cursor
  2. Select “Copy Path” to copy the absolute path
  3. Open Cursor Settings (gear icon)
  4. Navigate to Features tab
  5. Scroll down to “MCP Servers”
  6. Click “Add new MCP server”
  7. Fill in the form:
    • Name: Choose any name (e.g., “my-mcp-server-1”)
    • Type: Select “stdio” (not “sse” because we run the server locally)
    • Command: Paste the absolute path to cursor-run-mcp-server.sh that you copied earlier. For example: /Users/yourname/weaviate-mcp-server/cursor-run-mcp-server.sh

Environment Variables

Открыть полный README на GitHub

Установка

npx -y @smithery/cli install @kirill-markin/example-mcp-server --client claude
Новичок в MCP? Начните с руководства на mcpskill.org →