Overview

March 30, 2025 ยท View on GitHub

The Model Context Protocol allows applications to provide context for LLMs in a standardized way, separating the concerns of providing context from the actual LLM interaction. This TypeScript SDK implements the full MCP specification, making it easy to:

  1. Build MCP clients that can connect to any MCP server
  2. Create MCP servers that expose resources, prompts and tools
  3. Use standard transports like stdio and SSE
  4. Handle all MCP protocol messages and lifecycle events

Installation

  npm install @modelcontextprotocol/sdk

create mcp server in cursor AI

{
      "mcpServers": {
        "weatherData": {
          "command": "node",
          "args": ["/c/Users/AnishChaudhary/Documents/mcp-server-starter-kit/index.js"]
        }
      }
    }