{"id":26718554,"url":"https://github.com/ribeirogab/simple-mcp","last_synced_at":"2026-04-29T18:34:36.738Z","repository":{"id":284691703,"uuid":"955753912","full_name":"ribeirogab/simple-mcp","owner":"ribeirogab","description":"A simple TypeScript library for creating MCP servers.","archived":false,"fork":false,"pushed_at":"2025-03-28T14:52:46.000Z","size":23,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-19T00:02:30.271Z","etag":null,"topics":["ai","mcp","model-context-protocol"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/simple-mcp","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ribeirogab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-27T06:25:51.000Z","updated_at":"2025-03-28T14:52:49.000Z","dependencies_parsed_at":"2025-03-27T07:39:27.529Z","dependency_job_id":null,"html_url":"https://github.com/ribeirogab/simple-mcp","commit_stats":null,"previous_names":["ribeirogab/mcpkit"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ribeirogab/simple-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribeirogab%2Fsimple-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribeirogab%2Fsimple-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribeirogab%2Fsimple-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribeirogab%2Fsimple-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ribeirogab","download_url":"https://codeload.github.com/ribeirogab/simple-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribeirogab%2Fsimple-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32439295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T18:12:22.909Z","status":"ssl_error","status_checked_at":"2026-04-29T18:11:33.322Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","mcp","model-context-protocol"],"created_at":"2025-03-27T17:34:55.592Z","updated_at":"2026-04-29T18:34:36.733Z","avatar_url":"https://github.com/ribeirogab.png","language":"TypeScript","funding_links":[],"categories":["Development Tools MCP Servers","🤖 AI/ML","APIs and HTTP Requests","SDKs","Table of Contents"],"sub_categories":["JavaScript/TypeScript","Gaming"],"readme":"# Simple MCP\n\nA simple TypeScript library for creating [MCP](https://modelcontextprotocol.io/) (Model Context Protocol) servers.\n\n## Features\n\n- **Simple API**: Create MCP servers with minimal code\n- **Type Safety**: Full TypeScript integration\n- **Parameter Validation**: Built-in validation with Zod\n- **MCP Compatible**: Fully implements the Model Context Protocol\n\n## Installation\n\n```bash\nnpm install simple-mcp\n```\n\n## Quickstart\n\n```typescript\nimport { McpServer } from 'simple-mcp';\nimport { z } from 'zod';\n\n// Create a server instance\nconst server = new McpServer({ name: 'my-server' });\n\n// Register the tool with the server\nserver.tool({\n  name: 'greet',\n  parameters: {\n    name: z.string().describe('Person\\'s name')\n  },\n  execute: async ({ name }) =\u003e {\n    return {\n      content: [\n        {\n          type: 'text',\n          text: `Hello, ${name}! Nice to meet you.`\n        }\n      ]\n    };\n  }\n});\n\n// Start the server\nserver.start({ transportType: 'stdio' });\n```\n\n## Class-based Implementation\n\nYou can also implement MCP tools using classes:\n\n```typescript\nimport { McpServer, type McpTool } from 'simple-mcp';\nimport { z, ZodObject } from 'zod';\n\nconst parameters = {\n  name: z.string().describe('The name is required'),\n};\n\nclass GreetTool implements McpTool\u003ctypeof parameters\u003e {\n  public readonly name = 'greet';\n  public readonly parameters = parameters;\n\n  public async execute({ name }: z.infer\u003cZodObject\u003ctypeof this.parameters\u003e\u003e) {\n    return {\n      content: [\n        {\n          type: 'text',\n          text: `Hello, ${name}! Nice to meet you.`,\n        },\n      ],\n    };\n  }\n}\n\n// Initialize a new MCP server with the name 'greet-server'\nconst server = new McpServer({ name: 'greet-server' });\n\n// Create an instance of the GreetTool class\nconst greetTool = new GreetTool();\n\n// Register the tool with the server\nserver.tool(greetTool);\n\n// Start the server using stdio as the transport method\nserver.start({ transportType: 'stdio' });\n```\n\n## Examples\n\nCheck out the [examples directory](https://github.com/ribeirogab/simple-mcp/tree/main/examples) for more complete examples:\n\n- [Greeting Tool](https://github.com/ribeirogab/simple-mcp/tree/main/examples/greet.ts) - Simple greeting example\n- [Calculator Tool](https://github.com/ribeirogab/simple-mcp/tree/main/examples/calculator.ts) - Mathematical operations example\n\n## Contributing\n\nContributions are welcome! Feel free to open issues or submit pull requests.\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fribeirogab%2Fsimple-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fribeirogab%2Fsimple-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fribeirogab%2Fsimple-mcp/lists"}