trollspace-mcp
MCP server for the Trollspace API that exposes 47 type-safe tools for managing snippets, nuggets, todos, ideas, tools, repos, travel, subscriptions, and more.
README
trollspace-mcp
MCP server for the Trollspace API — exposes 47 type-safe tools for managing snippets, nuggets, todos, ideas, tools, repos, travel, subscriptions, and more.
Built with the Model Context Protocol SDK, openapi-fetch, and TypeScript types auto-generated from the OpenAPI spec.
Setup
Prerequisites
- Node.js >= 18
- A Trollspace API key
Install & Build
npm install
npm run build
Configuration
Set your API key as an environment variable:
export TROLLSPACE_API_KEY="troll_usr_your_key_here"
Usage with Claude Desktop
Add this to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"trollspace": {
"command": "node",
"args": ["/path/to/troll-mcp/dist/index.js"],
"env": {
"TROLLSPACE_API_KEY": "troll_usr_your_key_here"
}
}
}
}
Usage with Claude Code
Add to your Claude Code MCP settings:
claude mcp add trollspace -- node /path/to/troll-mcp/dist/index.js
Set the API key in your environment or pass it via the env config.
Tools
Snippets
Code snippets and quick references.
| Tool | Description |
|---|---|
list_snippets |
List all code snippets |
get_snippet |
Get a snippet by ID |
create_snippet |
Create a new snippet (name, description, code, language, tags) |
update_snippet |
Update an existing snippet |
delete_snippet |
Delete a snippet |
Nuggets
Knowledge notes and insights.
| Tool | Description |
|---|---|
list_nuggets |
List all nuggets |
get_nugget |
Get a nugget by ID |
create_nugget |
Create a new nugget (name, description, content) |
update_nugget |
Update an existing nugget |
delete_nugget |
Delete a nugget |
Todos
Task management lists.
| Tool | Description |
|---|---|
list_todos |
List all todo lists |
get_todo |
Get a todo list by ID |
create_todo |
Create a new todo list (name, description, content) |
update_todo |
Update an existing todo list |
delete_todo |
Delete a todo list |
Ideas
Project and content ideas.
| Tool | Description |
|---|---|
list_ideas |
List all ideas |
get_idea |
Get an idea by ID |
create_idea |
Create a new idea (name, content) |
update_idea |
Update an existing idea |
delete_idea |
Delete an idea |
Tools
Software tools and resources catalog.
| Tool | Description |
|---|---|
list_tools |
List all software tools |
get_tool |
Get a tool by ID |
create_tool |
Create a new tool entry (name, url, category, description, rating) |
update_tool |
Update an existing tool entry |
delete_tool |
Delete a tool entry |
Repos
Git repositories and projects.
| Tool | Description |
|---|---|
list_repos |
List all repositories |
get_repo |
Get a repo by ID |
create_repo |
Create a new repo entry (title, summary, description_md, repo_url, source_type) |
update_repo |
Update an existing repo entry |
delete_repo |
Delete a repo entry |
Travel
Travel locations and experiences.
| Tool | Description |
|---|---|
list_travel |
List travel locations (filter by status, location_type) |
get_travel |
Get a travel location by ID |
create_travel |
Add a travel location (location_id, location_type, status, dates, notes) |
update_travel |
Update a travel location |
delete_travel |
Remove a travel location |
Countries & Cities
Read-only reference data for use with travel tools.
| Tool | Description |
|---|---|
list_countries |
List countries (search by name, filter by continent) |
get_country |
Get a country by ID |
list_cities |
List cities (search by name, filter by country_id) |
get_city |
Get a city by ID |
Subscriptions
Recurring subscription management.
| Tool | Description |
|---|---|
list_subscriptions |
List subscriptions (filter by status, category, usage_type, billing_cycle) |
get_subscription |
Get a subscription by ID |
create_subscription |
Create a subscription (name, amount, currency, billing_cycle, usage_type) |
update_subscription |
Update a subscription |
delete_subscription |
Delete a subscription (payment history preserved) |
mark_subscription_paid |
Record a payment and advance the next billing date |
backfill_subscription |
Generate historical payment records for past periods |
list_subscription_payments |
List payments for a specific subscription |
Subscription Payments
Payment records across all subscriptions.
| Tool | Description |
|---|---|
list_all_payments |
List all payments (filter by subscription, status, usage_type, source, date range) |
get_payment |
Get a payment by ID |
create_payment |
Create a payment record |
update_payment |
Update a payment record |
delete_payment |
Delete a payment record |
Agent
| Tool | Description |
|---|---|
agent_query |
Send a natural language request to the Trollspace agent |
Development
Regenerate API types
If the OpenAPI spec changes, regenerate the TypeScript types:
npm run generate-types
Project structure
src/
client.ts # Type-safe API client (openapi-fetch + generated types)
index.ts # MCP server entry point with all tool definitions
types/api.d.ts # Auto-generated OpenAPI types (do not edit)
License
ISC
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。