MCP.so
Sign In
Servers

MCP - Model Context Protocol

@AdiGo22

MCP Server using TypeScript and JavaScript made with official MCP docs handling US Weather data having context for two tools - showing weather forecast and weather alerts for US based location. Used Zod for data validation and architectured two folders - src and build , developme

Overview

What is MCP - Model Context Protocol?

MCP is an open standard that enables developers to build secure, two-way connections between their data sources and AI-powered tools. It follows a client-server architecture where a host application can connect to multiple servers, allowing developers to either expose their data through MCP servers or build AI applications (MCP clients) that connect to these servers.

How to use MCP - Model Context Protocol?

Developers write TypeScript code in the src/ directory, implementing MCP protocol handlers (Resources, Tools, Prompts), compile it to JavaScript in the build/ directory using the TypeScript compiler, then run it via node build/index.js. Claude Desktop interacts with the server over stdio, where the flow is: Claude Desktop ↔ stdio ↔ Server Transport ↔ McpServer ↔ Tools.

Key features of MCP - Model Context Protocol?

  • Open standard for AI-data connections
  • Client-server architecture with multiple server support
  • Supports Resources, Tools, and Prompts
  • TypeScript source compiled to production JavaScript
  • Communicates with Claude Desktop via stdio
  • Host application can connect to multiple servers

Use cases of MCP - Model Context Protocol?

  • Expose data sources (e.g., APIs, databases) as MCP servers
  • Build AI applications that consume data from

Tags

More from Media & Design