Cover image
Try Now
2025-03-24

Basic MCP Server

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

MCP Server Example

This project is a very basic MCP server ready to be consumed by Cursor or other tools.

Modify index.ts and add any tools you want, or keep the default ones.

Then build the project:

pnpm run build

And run it:

pnpm run start

Now add a .cursor/mcp.json file in your project, and paste the following;

{
    "mcpServers":{
        "weather":{
            "command": "node",
            "args": ["[path]/build/index.js"]
        }     
    }
}

Replace [path] with the absolute path to this project. Run pwd in the project folder for that. For example, in my case it is:

{
    "mcpServers":{
        "weather":{
            "command": "node",
            "args": ["/Users/ivanbtrujillo/Development/mcp-server-spike/build/index.js"]
        }     
    }
}

Now go to "Settings" in cursor. You should be able to see the MCP server there. Enable it (click on the top right) MCP Server Cursor

Now go to the chat, switch to Agent mode and select claude-3.7-sonnet as your model.

Type the following:

What is the weather in Texas?

It will use the MCP to get first the weather alerts, and then the forecast Here is an example of how the chat interface looks when querying the weather in Texas:

Chat Interface

相关推荐

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

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

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

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

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

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

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

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • apappascs
  • Entdecken Sie die umfassendste und aktuellste Sammlung von MCP-Servern auf dem Markt. Dieses Repository dient als zentraler Hub und bietet einen umfangreichen Katalog von Open-Source- und Proprietary MCP-Servern mit Funktionen, Dokumentationslinks und Mitwirkenden.

  • huahuayu
  • Ein einheitliches API-Gateway zur Integration mehrerer Ethercan-ähnlicher Blockchain-Explorer-APIs mit Modellkontextprotokoll (MCP) für AI-Assistenten.

  • deemkeen
  • Steuern Sie Ihren MBOT2 mit einer Power Combo: MQTT+MCP+LLM

  • jae-jae
  • MCP -Server für den Fetch -Webseiteninhalt mit dem Headless -Browser von Dramatikern.

    Reviews

    5 (1)
    Avatar
    user_VEIiHwNw
    2025-04-18

    mcp-server-spike is an outstanding product that has significantly improved my server management tasks. Developed by ivanbtrujillo, this server spike tool offers remarkable functionalities, making it a valuable addition to my toolkit. The detailed documentation and user-friendly interface make it easy to integrate and use. Highly recommend checking it out at https://github.com/ivanbtrujillo/mcp-server-spike!