Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore 2
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules/
build/
*.log
.env*
PRIVATE_README.md
vscode
.vscode
37 changes: 37 additions & 0 deletions Dockerfile 2
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# Use an official Node.js runtime as a parent image
FROM node:18-alpine AS builder

# Set the working directory in the container
WORKDIR /app

# Copy the package.json and package-lock.json to the working directory
COPY package.json package-lock.json ./

# Install any needed packages specified in package.json
RUN npm install --ignore-scripts

# Copy the current directory contents into the container at /app
COPY . .

# Build the app
RUN npm run build

# Use a smaller node image for the release
FROM node:18-alpine

# Set the working directory in the container
WORKDIR /app

# Copy the built files from the builder
COPY --from=builder /app/build ./build
COPY --from=builder /app/package.json ./

# Install only production dependencies
RUN npm install --omit=dev

# Make port 8080 available to the world outside this container
EXPOSE 8080

# Run the application
ENTRYPOINT ["node", "build/index.js"]
21 changes: 21 additions & 0 deletions LICENSE 2
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Alex Andrushevich

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 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.
102 changes: 102 additions & 0 deletions README 2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
# Coincap MCP
[![Trust Score](https://archestra.ai/mcp-catalog/api/badge/quality/QuantGeekDev/coincap-mcp)](https://archestra.ai/mcp-catalog/quantgeekdev__coincap-mcp)

[![smithery badge](https://smithery.ai/badge/coincap-mcp)](https://smithery.ai/server/coincap-mcp)

## What does this server do?

Allows you to query crypto information from coincap's public API - no API keys or registration required

## 🚀 Quick Start

To get started, add this configuration to your Claude Desktop config file:

**MacOS**: `~/Library/Application\ Support/Claude/claude_desktop_config.json`
**Windows**: `%APPDATA%/Claude/claude_desktop_config.json`

```json
{
"mcpServers": {
"mongodb": {
"command": "npx",
"args": ["coincap-mcp"]
}
}
}
```

### Installing via Smithery

To install Coincap for Claude Desktop automatically via [Smithery](https://smithery.ai/server/coincap-mcp):

```bash
npx -y @smithery/cli install coincap-mcp --client claude
```

### Prerequisites

- Node.js 18+
- npx

Then, launch Claude Desktop and you're ready to go!

## Sample Prompts

- What is the price of bitcoin?
- What are the available crypto assets?
- What is the market cap of ethereum?

## Tools

#### Bitcoin Price Tool

Gets price for Bitcoin specifically, it's a simple example of a primitive API call tool

#### Get Crypto Price Tool

Gets price for any cryptocurrency available on coincap API. It's a good example of how to get mandatory parameter data for your tool calls

#### List Assets

Gets a list of all crypto assets available in coincap API

## Development - local build

To build it locally:

On MacOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
On Windows: `%APPDATA%/Claude/claude_desktop_config.json`

```json
{
"mcpServers": {
"coincap-mcp": {
"command": "/path/to/coincap-mcp/build/index.js"
}
}
}
```

## Development

Install dependencies:

```bash
npm install
```

Build the server:

```bash
npm run build
```

For development with auto-rebuild:

```bash
npm run watch
```

## 📜 License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Coincap MCP

[![Trust Score](https://archestra.ai/mcp-catalog/api/badge/quality/QuantGeekDev/coincap-mcp)](https://archestra.ai/mcp-catalog/quantgeekdev__coincap-mcp)
[![smithery badge](https://smithery.ai/badge/coincap-mcp)](https://smithery.ai/server/coincap-mcp)

## What does this server do?
Expand Down
55 changes: 55 additions & 0 deletions package 2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"name": "coincap-mcp",
"version": "0.9.3",
"author": {
"name": "Alex Andru",
"email": "[email protected]"
},
"description": "A MCP server to get crypto prices from coincap",
"license": "MIT",
"type": "module",
"bin": {
"coincap-mcp": "build/index.js"
},
"main": "build/index.js",
"files": [
"build",
"build/**/*"
],
"scripts": {
"build": "tsc && node -e \"require('fs').chmodSync('build/index.js', '755')\"",
"prepare": "npm run build",
"watch": "tsc --watch",
"inspector": "npx @modelcontextprotocol/inspector build/index.js",
"prepack": "npm run build"
},
"keywords": [
"mcp",
"claude",
"coincap",
"anthropic",
"ai",
"cryptocurrency"
],
"dependencies": {
"@modelcontextprotocol/sdk": "0.6.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/node": "^20.11.24",
"typescript": "^5.3.3"
},
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/QuantGeekDev/coincap-mcp.git"
},
"bugs": {
"url": "https://github.com/QuantGeekDev/coincap-mcp/issues"
},
"engines": {
"node": ">=18"
}
}
Loading