Simple MCP logo

Simple MCP

by ribeirogab

Simple MCP is a TypeScript library for creating Model Context Protocol (MCP) servers. It provides a simple API and type safety for building MCP compatible tools.

View on GitHub

Last updated: N/A

What is Simple MCP?

Simple MCP is a TypeScript library designed to simplify the creation of Model Context Protocol (MCP) servers. It provides an easy-to-use API, type safety, and built-in parameter validation, enabling developers to quickly build MCP-compliant tools.

How to use Simple MCP?

To use Simple MCP, install the package using npm install simple-mcp. Then, create a server instance using new McpServer({ name: 'your-server-name' }). Register tools with the server using the server.tool() method, providing a name, parameters (validated with Zod), and an execute function. Finally, start the server using server.start({ transportType: 'stdio' }) or another supported transport.

Key features of Simple MCP

  • Simple API

  • Type Safety

  • Parameter Validation (Zod)

  • MCP Compatible

Use cases of Simple MCP

  • Creating command-line tools that interact with models

  • Building intelligent assistants

  • Developing applications that leverage the Model Context Protocol

  • Integrating different software components using a standardized protocol

FAQ from Simple MCP

What is MCP?

MCP stands for Model Context Protocol, a protocol for communication between different software components.

What is Zod?

Zod is a TypeScript-first schema declaration and validation library.

What transport types are supported?

The README shows 'stdio' as a transport type. Other transport types might be supported based on the library's implementation.

Can I contribute to Simple MCP?

Yes, contributions are welcome! You can open issues or submit pull requests on the GitHub repository.

Is there a license?

Yes, Simple MCP is licensed under the MIT License.