Tools Server
A collection of Model Context Protocol (MCP) servers built with the official MCP SDK. This project includes two production-ready MCP servers that can be integrated with AI assistants like Cursor IDE.
Installation
npx mcp-tools-serverAsk AI about Tools Server
Powered by Claude Β· Grounded in docs
I know everything about Tools Server. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
MCP Server Collection
A collection of Model Context Protocol (MCP) servers built with the official MCP SDK. This project includes two production-ready MCP servers that can be integrated with AI assistants like Cursor IDE.
π What I've Built
This repository contains two MCP servers that extend AI capabilities:
1. Currency Converter Server (currencyConverted.js)
- Provides real-time currency conversion functionality
- Uses the open Exchange Rates API for accurate conversion rates
- Supports all major global currencies
- Tool:
convertCurrency- converts amounts between different currencies
2. Weather Server (weatherServer.js)
- Fetches current weather information for any location
- Uses wttr.in API for quick weather data
- Returns concise weather summaries including temperature and conditions
- Tool:
getWeather- retrieves weather information for a specified city
π Prerequisites
- Node.js (v18 or higher recommended)
- npm (comes with Node.js)
- Cursor IDE (or any MCP-compatible client)
π§ Installation
-
Clone the repository:
git clone <your-repo-url> cd mcp-server -
Install dependencies:
npm install
βοΈ Configuration for Cursor IDE
To use these MCP servers with Cursor, you need to configure them in your Cursor settings.
- Open Cursor IDE
- Go to Settings β MCP Settings (or press
Cmd/Ctrl + Shift + Pand search for "MCP") - Add the following configuration to your MCP settings file:
{
"mcpServers": {
"currency-converter": {
"command": "node",
"args": ["/absolute/path/to/mcp-server/currencyConverted.js"]
},
"weather": {
"command": "node",
"args": ["/absolute/path/to/mcp-server/weatherServer.js"]
}
}
}
Important: Replace /absolute/path/to/mcp-server/ with the actual absolute path to this project folder on your system.
Finding Your Absolute Path
-
Linux/Mac:
pwdRun this command in the project directory.
-
Windows:
cdRun this command in the project directory.
π― Usage
Once configured in Cursor, the MCP servers will automatically start when needed. You can interact with them through Cursor's AI assistant.
Example Prompts for Cursor:
Currency Conversion:
- "Convert 100 USD to EUR"
- "How much is 50 GBP in INR?"
- "Convert 1000 JPY to USD"
Weather Information:
- "What's the weather in London?"
- "Get weather for New York"
- "Show me the weather in Tokyo"
π οΈ Manual Testing
You can also run the servers manually for testing:
# Start Currency Converter Server
npm run start:currency
# Start Weather Server (in a new terminal)
npm run start:weather
Note: MCP servers use stdio transport, so they expect input from an MCP client. Running them manually will keep them waiting for input.
π¦ Project Structure
mcp-server/
βββ currencyConverted.js # Currency converter MCP server
βββ weatherServer.js # Weather information MCP server
βββ package.json # Project dependencies and scripts
βββ README.md # This file
βββ .gitignore # Git ignore rules
π Key Features
- Type-safe: Uses Zod for runtime type validation
- Error handling: Comprehensive error handling for API failures
- Production-ready: Follows MCP SDK best practices
- Modular: Each server is independent and can be used separately
- Easy integration: Simple stdio-based communication protocol
π APIs Used
- Currency Conversion: Open Exchange Rates API - Free tier, no API key required
- Weather: wttr.in - Free weather service, no API key required
π Learn More
π€ Contributing
Feel free to fork this repository and submit pull requests for:
- New MCP server implementations
- Bug fixes
- Documentation improvements
- Additional features
π License
MIT
π€ Author
Utsav Goel
Happy Coding! π
