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

MCP-servers
3 years
Works with Finder
1
Github Watches
0
Github Forks
1
Github Stars
MCP Weather & DigitalOcean
A collection of Model Context Protocol (MCP) servers for use with Cursor.
Project Structure
src/
├── index.ts # Main entry point
├── shared/ # Shared utilities
│ └── api.ts # Shared API utilities
├── weather/ # Weather MCP server
│ ├── api.ts # Weather API functions
│ ├── server.ts # Weather MCP server configuration
│ └── types.ts # Weather API types
├── digitalocean/ # DigitalOcean MCP server
│ ├── api.ts # DigitalOcean API functions
│ ├── server.ts # DigitalOcean MCP server configuration
│ └── types.ts # DigitalOcean API types
└── template/ # Template for new MCP servers
├── api.ts # Template API functions
├── server.ts # Template MCP server configuration
└── types.ts # Template API types
tests/ # Test scripts and files
Available MCP Servers
Weather Server
The Weather MCP server provides tools for accessing weather information from the National Weather Service API.
Tools:
-
get-alerts: Get weather alerts for a US state
- Parameters:
state
(two-letter state code, e.g., CA, NY)
- Parameters:
-
get-forecast: Get weather forecast for a location
- Parameters:
latitude
andlongitude
coordinates
- Parameters:
DigitalOcean Server
The DigitalOcean MCP server provides tools for deploying and managing static websites on DigitalOcean App Platform using their API.
API Token Handling
The DigitalOcean MCP server will automatically look for your API token in the following locations (in order):
- As a parameter in the tool call
- Environment variables:
DO_API_TOKEN
orDIGITALOCEAN_API_TOKEN
- A file at
~/.dotoken
containing just the token - A
.env
file in the project root withDO_API_TOKEN=your_token
- A file at
~/.config/digitalocean/token
containing just the token
This means you can set up your token once and not have to provide it with every command.
Tools:
-
deploy-static-site: Deploy a static website to DigitalOcean App Platform
- Required Parameters:
-
app_name
: Name for your app -
repo
: GitHub repository (username/repo)
-
- Optional Parameters:
-
token
: DigitalOcean API token (optional if stored in environment or config files) -
region
: Region code (e.g., nyc, sfo) - Default: "nyc" -
branch
: Branch to deploy - Default: "main" -
source_dir
: Directory in repo containing source code - Default: "/" -
build_command
: Build command (if needed) -
output_dir
: Directory where build outputs files -
deploy_on_push
: Auto-deploy on git push - Default: true -
environment_slug
: Runtime environment - Default: "html" -
custom_domain
: Custom domain (optional)
-
- Required Parameters:
-
get-app-info: Get information about a DigitalOcean App Platform app
- Required Parameters:
-
app_id
: App ID
-
- Optional Parameters:
-
token
: DigitalOcean API token (optional if stored in environment or config files)
-
- Required Parameters:
-
get-deployment-status: Get the status of a specific deployment
- Required Parameters:
-
app_id
: App ID -
deployment_id
: Deployment ID
-
- Optional Parameters:
-
token
: DigitalOcean API token (optional if stored in environment or config files)
-
- Required Parameters:
-
list-deployments: List all deployments for an app
- Required Parameters:
-
app_id
: App ID
-
- Optional Parameters:
-
token
: DigitalOcean API token (optional if stored in environment or config files)
-
- Required Parameters:
-
create-deployment: Create a new deployment (redeploy an app)
- Required Parameters:
-
app_id
: App ID
-
- Optional Parameters:
-
token
: DigitalOcean API token (optional if stored in environment or config files) -
force_build
: Force a rebuild without cache - Default: false
-
- Required Parameters:
-
get-deployment-logs: Get logs for a deployment
- Required Parameters:
-
app_id
: App ID -
deployment_id
: Deployment ID
-
- Optional Parameters:
-
token
: DigitalOcean API token (optional if stored in environment or config files)
-
- Required Parameters:
-
delete-app: Delete an app from DigitalOcean App Platform
- Required Parameters:
-
app_id
: App ID
-
- Optional Parameters:
-
token
: DigitalOcean API token (optional if stored in environment or config files)
-
- Required Parameters:
Adding a New MCP Server
To add a new MCP server:
- Copy the
template
directory and rename it to your server name - Update the types, API functions, and server configuration
- Add your server to the main
index.ts
file
Building and Running
# Install dependencies
npm install
# Build the project
npm run build
# Run the Weather MCP server
node build/index.js
# Run the DigitalOcean MCP server
node build/index.js digitalocean
Testing
The project includes several test scripts in the tests/
directory:
-
test-simple.mjs
: A simple test script that sends JSON-RPC requests to the MCP server -
test-api.mjs
: A script that directly tests the DigitalOcean API -
test-mcp.mjs
: A more comprehensive test for the MCP server -
test-deploy.mjs
: A test script specifically for the deploy-static-site tool -
token-test.mjs
: A utility script to verify that the DigitalOcean API token can be read correctly
To run a test:
# Run a test script
node tests/test-simple.mjs
Cursor Integration
To use with Cursor, add the following to your .cursor/mcp.json
file:
{
"mcpServers": {
"weather": {
"command": "node",
"args": [
"/path/to/your/project/build/index.js"
]
},
"digitalocean": {
"command": "node",
"args": [
"/path/to/your/project/build/index.js",
"digitalocean"
]
}
}
}
相关推荐
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
Confidential guide on numerology and astrology, based of GG33 Public information
A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.
Advanced software engineer GPT that excels through nailing the basics.
Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.
Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX
Une passerelle API unifiée pour intégrer plusieurs API d'explorateur de blockchain de type étherscan avec la prise en charge du protocole de contexte modèle (MCP) pour les assistants d'IA.
Miroir dehttps: //github.com/bitrefill/bitrefill-mcp-server
Reviews

user_92iY2WjQ
I've been using mcp-servers for a while now, and I'm really impressed with its performance and reliability. Wade Wegner has done an excellent job creating a seamless and efficient server solution. The setup process is straightforward, and the documentation on GitHub is clear and helpful. Highly recommended for anyone looking for a robust server application!