
mcp server examples
包含基于 Model Context Protocol (MCP) 的 TypeScript 示例服务器,用于实现各类工具和功能。
Repository Info
About This Server
包含基于 Model Context Protocol (MCP) 的 TypeScript 示例服务器,用于实现各类工具和功能。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
🤖 Model Context Protocol (MCP) Examples
This repository contains modular MCP agent servers built using the Model Context Protocol TypeScript SDK.
Each subdirectory in src/ is a self-contained MCP server with tools and prompts (e.g., code analysis, summarization, etc.).
✨ The root
src/index.tsdynamically registers and launches all individual servers.
📦 Structure
src/
├── index.ts # Main launcher to register all MCP servers
├── code-analysis/ # Analyzes local code repositories
│ ├── tools.ts # Tool implementations
│ ├── server.ts # Registers tools & prompts with MCP
│ ├── utils.ts # Helper functions (file reading, structure)
│ ├── prompt.ts # Prompt handler definitions
│ └── README.md # Module-specific usage docs
...
🚀 Getting Started
1. Install dependencies
npm install
2. (Optional) Set up local .env
echo "PORT=3000" > .env
3. Start the MCP server
npm run dev
The server will run at:
http://localhost:3000/mcp
🧪 Debugging / Manual Testing
You can test the server using MCP Inspector, a UI debugger for MCP-based servers.
Start the MCP Inspector (in another terminal)
npm run debug
Then open:
👉 http://127.0.0.1:6274
and connect to http://localhost:3000/mcp using Streamable HTTP.
🧩 Supported MCP Modules
| Folder | Description | Transport |
|---|---|---|
code-analysis | Analyze and explore local code repositories | Streamable HTTP |
boilerplate-gen | Generate starter codebases and incrementally add features | STDIO |
| (more coming soon) | ... | ... |
📜 License
MIT License Copyright (c) 2025 suresh konakanchi
Permission is hereby granted,
free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to the
following conditions:
The above copyright notice and this permission notice
(including the next paragraph) shall be included in all copies or substantial
portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Quick Start
Clone the repository
git clone https://github.com/sur950/mcp-server-examplesInstall dependencies
cd mcp-server-examples
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.