MCP cover image
See in Github
2025-02-12

1

Github Watches

1

Github Forks

0

Github Stars

MCP Server Coding Demo Guide

Step 1: Clone the Repository

  1. Create a folder on your device where you'll store your MCP servers to stay organized.
  2. Clone the repository into that folder.

Step 2: Review the Source Files

  • Navigate to the src folder and review the following files:
    • index.ts: A basic template server that requires modifications.
    • demo.ts: A functional example that demonstrates an API integration.

Step 3: Select an API

  1. Go to RapidAPI and find an API and endpoint to use.
  2. Get access and your autorization key. Review the example output to understand how the request should be structured.
  3. Ensure you retrieve the correct headers, authorization details, and request parameters.

Note: Suggested to use an API with good ratings and clear output. To be sure that it's reliable.

Step 4: Configure Your Demo

  1. Define the server name - choose something which will be easy for you or an end user to recognise.
  2. Define Your Tool: Choose a name that makes sense for your use case. Collect parameters, and mark them as required if they are needed.
  3. Configure the Resource:
    • Ensure the API is properly called. Configure your authorization headers and endpoint url.
    • Pass the correct data in with the request.
    • Note - handle authentication correctly (either within the MCP configuration or a .env file).

Step 5: Install and Build

  1. Install dependencies if not already installed:
    npm install
    npm run build
    

Step 6: Configure Your Chat App

  1. Use the example configuration as your base and edit the following:
    • Build path to match your build file location.
    • Set an appropriate tool name.
    • Ensure the command is correct.
    • Insert your API key as an ENV value.
  2. Save the configuration file for your cloud desktop or 5ier setup.
  • ~/Library/Application Support
  1. Restart the chat application to apply the changes.
{
  "stock": {
    "command": "node",
    "args": ["users/mcp-servers/mcp-server-demo-1/build/demo.js"],
    "env": {
      "RAPIDAPI_KEY": "XXX-XXX-XXX-XXX-XXX-XXX-XXX-XXX-XXX"
    },
    "disabled": false,
    "autoApprove": []
  }
}

Step 8: Test Your Setup

  • Launch a chat and verify that your server is working as expected.

Debugging and Troubleshooting

Help!

Setting up MCP on Claude Desktop (user guide)
https://modelcontextprotocol.io/quickstart/user

Making an MCP server quickstart guide (dev guide)
https://modelcontextprotocol.io/quickstart/server

MCP 101 and building an MCP Server
https://glama.ai/blog/2024-11-25-model-context-protocol-quickstart

TS MCP SDK
https://github.com/modelcontextprotocol/typescript-sdk

5ire - How to add MCP to 5ire

Not feeling confident with the code? - Consider the Cline Way

Additional Notes

  • Links to specific debugging resources and chat app configurations will be added.
  • MCP servers can be deployed and tested directly within Klein.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://jgadvisorycpa.com
  • This GPT assists in finding a top-rated business CPA - local or virtual. We account for their qualifications, experience, testimonials and reviews. Business operators provide a short description of your business, services wanted, and city or state.

  • Contraband Interactive
  • Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.

  • rustassistant.com
  • Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • modelcontextprotocol
  • 模型上下文协议服务器

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • n8n-io
  • 具有本机AI功能的公平代码工作流程自动化平台。将视觉构建与自定义代码,自宿主或云相结合,400+集成。

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

    Reviews

    1 (1)
    Avatar
    user_JVFzzNrh
    2025-04-15

    CrewAI MCP Server by rafaelcc14g is an exceptional server solution for managing MCP applications. Its seamless integration, robust features, and user-friendly interface truly stand out. I highly recommend it for anyone looking to streamline their workflow and enhance productivity. The performance is reliable, and the support from rafaelcc14g is top-notch. Check it out at https://mcp.so/server/mcp-server-crewai/rafaelcc14g for an outstanding experience!