MCP Server Demonstration
A demonstration on setting up and using MCP servers within Cursor, with Docker examples.
MCP Server Demonstration
This repository demonstrates how to set up and use MCP (Model Context Protocol) servers within Cursor. MCP allows you to define custom tools that the AI assistant can use to perform actions, such as fetching data from an API or running a local script.
Configuration
The MCP servers are configured in the .cursor/mcp.json file. This file contains a JSON object that defines one or more servers.
{
"mcpServers": {
"docker-server_2": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--name",
"mcp-weather-server",
"mcp-weather-server:latest"
],
"env": {
"DEBUG": "mcp:*"
}
},
"time-server_2": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"mcp/time"
],
"env": {
"DEBUG": "mcp:*"
}
}
}
}
Servers
This project defines two MCP servers:
docker-server_2: This server runs a Docker container namedmcp-weather-serverfrom themcp-weather-server:latestimage. It's used to get weather information.time-server_2: This server runs a Docker container from themcp/timeimage. It's used to get the current time in a specific timezone.
Usage
You can interact with these servers by asking the Cursor assistant questions that would trigger the tools defined by these servers.
Getting the Time
User: what time is it in Boston?
Assistant Tool Call: mcp_time-server_2_get_current_time({timezone: "America/New_York"})
Getting the Weather
User: what's the temperature in Boston?
Assistant: I can get the temperature for you. Do you want it in Celsius or Fahrenheit?
User: F
Assistant Tool Call: mcp_docker-server_2_get_weather_2({city: "Boston", units: "fahrenheit"})
संबंधित सर्वर
Alpha Vantage MCP Server
प्रायोजकAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
2ndOpinion
AI-to-AI code review platform — Claude, Codex, and Gemini cross-check each other via MCP, REST API, and CLI for consensus-based results.
mcp4gql
An MCP server that acts as a bridge, allowing MCP clients to interact with a target GraphQL API.
Context Portal MCP (ConPort)
A server for managing structured project context using SQLite, with support for vector embeddings for semantic search and Retrieval Augmented Generation (RAG).
RapidTools Validate
Deterministic JSON Schema validation with signed cryptographic attestations. Validate payloads, verify signatures, and retrieve attestation records.
MCP Startup Framework
A framework for building MCP servers on Cloudflare Workers with OAuth, PostgreSQL, and Stripe.
Exploit Intelligence Platform MCP Server
An MCP (Model Context Protocol) server that gives AI assistants access to the Exploit Intelligence Platform — hundreds of thousands of vulnerabilities and exploits from NVD, CISA KEV, VulnCheck KEV, InTheWild.io, ENISA EUVD, OSV.dev, EPSS, ExploitDB, Metasploit, GitHub, and more. I
Authless Remote MCP Server
An example of a remote MCP server without authentication, deployable on Cloudflare Workers or runnable locally.
Base MCP Server
An MCP server providing onchain tools for AI applications to interact with the Base Network and Coinbase API.
Scanpy-MCP
A natural language interface for single-cell RNA sequencing (scRNA-Seq) analysis using the Scanpy library.
XcodeBuildMCP
A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.