This MCP server allows you to access and search Old School RuneScape (OSRS) Wiki data and game definition files through a standardized interface. It provides tools for searching wiki pages and querying various game data files containing information about items, NPCs, locations, and more.
The easiest way to install the OSRS MCP server for Claude Desktop is with Smithery:
npx @smithery/cli@latest install @jayarrowz/mcp-osrs --client claude
If you prefer to install manually:
# Clone the repository
git clone https://github.com/jayarrowz/mcp-osrs.git
cd mcp-osrs
# Install dependencies
npm install
# Build the package
npm run build
To use this MCP server with Claude Desktop, add one of the following configurations to your claude_desktop_config.json
file:
{
"mcpServers": {
"osrs": {
"command": "npx",
"args": ["-y", "@jayarrowz/mcp-osrs"]
}
}
}
{
"mcpServers": {
"osrs": {
"command": "node",
"args": ["/path/to/mcp-osrs/dist/index.js"]
}
}
}
These tools allow you to search and retrieve information from the OSRS Wiki:
// Search for information about the Abyssal whip
const result = await callTool("osrs_wiki_search", {
search: "Abyssal whip"
});
// Get information about a specific wiki page
const pageInfo = await callTool("osrs_wiki_get_page_info", {
titles: "Abyssal_whip"
});
// Get the parsed HTML content of a wiki page
const pageContent = await callTool("osrs_wiki_parse_page", {
page: "Abyssal_whip"
});
The server provides tools to search various game data definition files:
// Search for dragon items
const items = await callTool("search_objtypes", {
query: "dragon",
page: 1,
pageSize: 10
});
// Search for goblin NPCs
const npcs = await callTool("search_npctypes", {
query: "goblin",
page: 1,
pageSize: 10
});
// Search for bank locations
const locations = await callTool("search_loctypes", {
query: "bank",
page: 1,
pageSize: 10
});
These tools help you explore and manage the available data files:
// Get a list of all available data files
const files = await callTool("list_data_files", {});
// Get details about a specific data file
const fileDetails = await callTool("get_file_details", {
filename: "objtypes.txt"
});
// Search any data file for specific content
const results = await callTool("search_data_file", {
filename: "npctypes.txt",
query: "dragon",
page: 1,
pageSize: 10
});
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "osrs" '{"command":"npx","args":["-y","@jayarrowz/mcp-osrs"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"osrs": {
"command": "npx",
"args": [
"-y",
"@jayarrowz/mcp-osrs"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"osrs": {
"command": "npx",
"args": [
"-y",
"@jayarrowz/mcp-osrs"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect